We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da3c5f1 commit 41b11afCopy full SHA for 41b11af
packages/uikit-workshop/src/scripts/lit-components/pl-viewport/pl-viewport.js
@@ -224,7 +224,7 @@ class IFrame extends BaseLitComponent {
224
}
225
226
handleResize() {
227
- this.updateSizeReading(this.iframe.clientWidth);
+ this.updateSizeReading(this.iframeContainer.clientWidth);
228
229
230
// Update Pixel and Em inputs
@@ -414,7 +414,7 @@ class IFrame extends BaseLitComponent {
414
const self = this;
415
self.querySelector('.pl-js-resize-handle').classList.add('is-resizing');
416
const origClientX = event.clientX;
417
- const origViewportWidth = this.iframe.clientWidth + 40;
+ const origViewportWidth = this.iframeContainer.clientWidth;
418
419
this.fullMode = false;
420
0 commit comments