Skip to content

Commit 67e3eca

Browse files
committed
More styles fixes to keep compatibility with IE11
1 parent 85bc9e9 commit 67e3eca

5 files changed

Lines changed: 31 additions & 17521 deletions

File tree

src/LIN3S/AdminBundle/Resources/private/js/components/FormSidebar.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,15 @@ class FormSidebar {
2929
}
3030

3131
onScroll() {
32-
// var width = parseInt(this.fixedElementWidth);
33-
3432
if (document.body.scrollTop > this.offsetTop() - 20) {
35-
(this.rootNode).style.position = 'relative';
33+
this.rootNode.style.position = 'relative';
3634

37-
(this.fixedElement).style.position = 'fixed';
38-
(this.fixedElement).style.top = '20px';
39-
(this.fixedElement).style.width = this.fixedElementWidth + 'px';
35+
this.fixedElement.style.position = 'fixed';
36+
this.fixedElement.style.top = '20px';
37+
this.fixedElement.style.width = `${this.fixedElementWidth}px`;
4038
} else {
41-
this.rootNode.style = '';
42-
this.fixedElement.style = '';
39+
this.rootNode.removeAttribute('style');
40+
this.fixedElement.removeAttribute('style');
4341
}
4442
}
4543
}

src/LIN3S/AdminBundle/Resources/private/scss/components/_form-collection.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ $form-collection-item-toggle-icon-color: $color-mercury !default;
4141
padding-right: 30px;
4242

4343
.form-collection__toggle {
44-
right: 5px;
44+
right: 30px;
4545
}
4646
}
4747
}
@@ -81,7 +81,7 @@ $form-collection-item-toggle-icon-color: $color-mercury !default;
8181
height: 25px;
8282
padding: 5px;
8383
position: absolute;
84-
right: -10px;
84+
right: 15px;
8585
top: 25px;
8686
transform: translateY(-50%);
8787
width: 25px;

0 commit comments

Comments
 (0)