@babylonjs/gui-editor 6.6.0 → 6.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41070,7 +41070,7 @@ class CoordinateHelper {
|
|
41070
41070
|
static ConvertToPixels(guiControl, properties = ["left", "top", "width", "height"], onPropertyChangedObservable) {
|
41071
41071
|
// make sure we are using the latest measures for the control
|
41072
41072
|
const parentMeasure = CoordinateHelper.GetParentSizes(guiControl);
|
41073
|
-
guiControl._processMeasures(parentMeasure, guiControl.host);
|
41073
|
+
guiControl._processMeasures(parentMeasure, guiControl.host.getContext());
|
41074
41074
|
for (const property of properties) {
|
41075
41075
|
const initialValue = guiControl[property];
|
41076
41076
|
guiControl[`_${property}`] = new gui_2D_valueAndUnit__WEBPACK_IMPORTED_MODULE_0__.ValueAndUnit(this.Round(guiControl[`${property}InPixels`]), gui_2D_valueAndUnit__WEBPACK_IMPORTED_MODULE_0__.ValueAndUnit.UNITMODE_PIXEL);
|