File tree Expand file tree Collapse file tree
src/LIN3S/AdminBundle/Resources Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 : 5 px ;
44+ right : 30 px ;
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 : -10 px ;
84+ right : 15 px ;
8585 top : 25px ;
8686 transform : translateY (-50% );
8787 width : 25px ;
You can’t perform that action at this time.
0 commit comments