From f016d04c1f736f76565cc0edc9eead1f6abc4914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 12 Feb 2019 16:52:52 +0100 Subject: [PATCH] V8 UI - umb-sticky-bar corrected width and height set by JS. --- .../common/directives/components/umbstickybar.directive.js | 4 ++-- .../components/editor/subheader/umb-editor-sub-header.less | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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;