babylonjs-gui 5.57.0 → 5.57.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.
- package/babylon.gui.js +6 -6
- package/babylon.gui.js.map +1 -1
- package/babylon.gui.min.js +1 -1
- package/babylon.gui.min.js.map +1 -1
- package/package.json +2 -2
package/babylon.gui.js
CHANGED
@@ -8281,7 +8281,7 @@ var Grid = /** @class */ (function (_super) {
|
|
8281
8281
|
var rowDefinition = _c[_b];
|
8282
8282
|
tops.push(top);
|
8283
8283
|
if (!rowDefinition.isPixel) {
|
8284
|
-
var height = (rowDefinition.value / globalHeightPercentage) * availableHeight;
|
8284
|
+
var height = Math.round((rowDefinition.value / globalHeightPercentage) * availableHeight);
|
8285
8285
|
top += height;
|
8286
8286
|
heights[index] = height;
|
8287
8287
|
}
|
@@ -8310,7 +8310,7 @@ var Grid = /** @class */ (function (_super) {
|
|
8310
8310
|
var columnDefinition = _g[_f];
|
8311
8311
|
lefts.push(left);
|
8312
8312
|
if (!columnDefinition.isPixel) {
|
8313
|
-
var width = (columnDefinition.value / globalWidthPercentage) * availableWidth;
|
8313
|
+
var width = Math.round((columnDefinition.value / globalWidthPercentage) * availableWidth);
|
8314
8314
|
left += width;
|
8315
8315
|
widths[index] = width;
|
8316
8316
|
}
|
@@ -8333,10 +8333,10 @@ var Grid = /** @class */ (function (_super) {
|
|
8333
8333
|
var x = parseInt(split[0]);
|
8334
8334
|
var y = parseInt(split[1]);
|
8335
8335
|
var cell = _this._cells[key];
|
8336
|
-
cell.
|
8337
|
-
cell.
|
8338
|
-
cell.
|
8339
|
-
cell.
|
8336
|
+
cell.leftInPixels = lefts[y];
|
8337
|
+
cell.topInPixels = tops[x];
|
8338
|
+
cell.widthInPixels = widths[y];
|
8339
|
+
cell.heightInPixels = heights[x];
|
8340
8340
|
cell._left.ignoreAdaptiveScaling = true;
|
8341
8341
|
cell._top.ignoreAdaptiveScaling = true;
|
8342
8342
|
cell._width.ignoreAdaptiveScaling = true;
|