V8 UI - umb-sticky-bar corrected width and height set by JS.

This commit is contained in:
Niels Lyngsø
2019-02-12 16:52:52 +01:00
parent 1def9014cd
commit f016d04c1f
2 changed files with 3 additions and 2 deletions

View File

@@ -119,9 +119,9 @@ Use this directive make an element sticky and follow the page when scrolling.
}
function calculateSize() {
var width = bar.innerWidth();
clonedBar.css({
width: bar.outerWidth(),
height: bar.height()
width: width
});
}

View File

@@ -7,6 +7,7 @@
margin-top: -10px;
position: relative;
top: 0;
box-sizing: border-box;
&.nested {
margin-top: 0;