diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbstickybar.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbstickybar.directive.js index e8d8315b7a..a00138db15 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbstickybar.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbstickybar.directive.js @@ -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 }); } diff --git a/src/Umbraco.Web.UI.Client/src/less/components/editor/subheader/umb-editor-sub-header.less b/src/Umbraco.Web.UI.Client/src/less/components/editor/subheader/umb-editor-sub-header.less index 1aadb1c39b..0c11349841 100644 --- a/src/Umbraco.Web.UI.Client/src/less/components/editor/subheader/umb-editor-sub-header.less +++ b/src/Umbraco.Web.UI.Client/src/less/components/editor/subheader/umb-editor-sub-header.less @@ -7,6 +7,7 @@ margin-top: -10px; position: relative; top: 0; + box-sizing: border-box; &.nested { margin-top: 0;