polarvo-layout 1.0.50 → 1.0.52
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/package.json
CHANGED
|
@@ -276,19 +276,19 @@ class EngineManager {
|
|
|
276
276
|
const newWidth = newValue.px;
|
|
277
277
|
const newHeight = newValue.px / calculateAspectRatio(newValue.aspectRatio);
|
|
278
278
|
|
|
279
|
-
await nextTick()
|
|
280
|
-
|
|
279
|
+
await nextTick(() => {
|
|
280
|
+
// nextTick(() => {
|
|
281
281
|
this.setContainerSize();
|
|
282
|
+
});
|
|
283
|
+
const normalizeElements = dataConverter.normalize(this.state.elements, oldWidth, oldHeight);
|
|
284
|
+
const denormalizedElements = dataConverter.denormalize(normalizeElements, newWidth, newHeight);
|
|
282
285
|
|
|
283
|
-
|
|
284
|
-
const denormalizedElements = dataConverter.denormalize(normalizeElements, newWidth, newHeight);
|
|
285
|
-
|
|
286
|
-
this.state.elements = denormalizedElements;
|
|
286
|
+
this.state.elements = denormalizedElements;
|
|
287
287
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
288
|
+
this.eventBus.emit('system:requestElementsScale', {
|
|
289
|
+
$elements: this.state.elements,
|
|
290
|
+
timestamp: Date.now(),
|
|
291
|
+
});
|
|
292
292
|
// });
|
|
293
293
|
}
|
|
294
294
|
|