diff --git a/core/src/SplitView.svelte b/core/src/SplitView.svelte
index 98a415489a..cc4233acbb 100644
--- a/core/src/SplitView.svelte
+++ b/core/src/SplitView.svelte
@@ -122,7 +122,7 @@
}
elements.split.style.top = `${SplitViewSvc.splitViewValues.top}px`;
- elements.iframe.style.paddingBottom = `${SplitViewSvc.splitViewValues.bottom}px`;
+ elements.iframe.style.marginBottom = `${SplitViewSvc.splitViewValues.bottom}px`;
};
function _messageHandler(e) {
@@ -287,7 +287,7 @@
{
this.getDragger().style.top = `${this.splitViewValues.top}px`;
});
@@ -273,7 +273,7 @@ class SplitViewSvcClass {
collapsed: true
});
this.getContainer().style.top = '';
- IframeHelpers.getIframeContainer().style.paddingBottom = '';
+ IframeHelpers.getIframeContainer().style.marginBottom = '';
});
}
}
diff --git a/test/e2e-test-application/e2e/tests/1-angular/luigi-client-link-manager-features.spec.js b/test/e2e-test-application/e2e/tests/1-angular/luigi-client-link-manager-features.spec.js
index 9203a87d3d..ad56cd752e 100644
--- a/test/e2e-test-application/e2e/tests/1-angular/luigi-client-link-manager-features.spec.js
+++ b/test/e2e-test-application/e2e/tests/1-angular/luigi-client-link-manager-features.spec.js
@@ -584,7 +584,7 @@ describe('Luigi client linkManager', () => {
.invoke('height')
.should('eq', splitViewHeight);
- if (`${splitViewHeight}px` === win.getComputedStyle($iframe[0]).paddingBottom) {
+ if (`${splitViewHeight}px` === win.getComputedStyle($iframe[0]).marginBottom) {
cy.log('Positive');
} else {
cy.error('Negative');
@@ -617,7 +617,7 @@ describe('Luigi client linkManager', () => {
const splitViewHeight = parseFloat(win.getComputedStyle($splitViewContainer[0]).height);
- if (`${splitViewHeight}px` === win.getComputedStyle($iframe[0]).paddingBottom) {
+ if (`${splitViewHeight}px` === win.getComputedStyle($iframe[0]).marginBottom) {
cy.log('Positive');
} else {
cy.error('Negative');
diff --git a/test/e2e-test-application/src/assets/helloWorldWC.js b/test/e2e-test-application/src/assets/helloWorldWC.js
index 19a2af06a9..b1872aedce 100644
--- a/test/e2e-test-application/src/assets/helloWorldWC.js
+++ b/test/e2e-test-application/src/assets/helloWorldWC.js
@@ -7,6 +7,9 @@ export default class extends HTMLElement {
const templateBtn = document.createElement('template');
templateBtn.innerHTML = '';
+ const empty = document.createElement('template');
+ empty.innerHTML = ``;
+
this._shadowRoot = this.attachShadow({
mode: 'open',
delegatesFocus: false
@@ -14,6 +17,10 @@ export default class extends HTMLElement {
this._shadowRoot.appendChild(template.content.cloneNode(true));
this._shadowRoot.appendChild(templateBtn.content.cloneNode(true));
+ for (let index = 0; index < 20; index++) {
+ this._shadowRoot.appendChild(empty.content.cloneNode(true));
+ }
+
this.$paragraph = this._shadowRoot.querySelector('p');
this.$button = this._shadowRoot.querySelector('button');
this.$button.addEventListener('click', () => {