UX: occasionally getting scrollbar while loading notifications
This commit is contained in:
parent
c294798561
commit
62f09af1c2
|
@ -112,7 +112,8 @@ const SiteHeaderComponent = MountWidget.extend(Docking, {
|
||||||
$panel.removeClass('drop-down').removeClass('slide-in').addClass(viewMode);
|
$panel.removeClass('drop-down').removeClass('slide-in').addClass(viewMode);
|
||||||
|
|
||||||
const $panelBody = $('.panel-body', $panel);
|
const $panelBody = $('.panel-body', $panel);
|
||||||
let contentHeight = parseInt($('.panel-body-contents', $panel).height());
|
// 2 pixel fudge allows for firefox subpixel sizing stuff causing scrollbar
|
||||||
|
let contentHeight = parseInt($('.panel-body-contents', $panel).height()) + 2;
|
||||||
|
|
||||||
// We use a mutationObserver to check for style changes, so it's important
|
// We use a mutationObserver to check for style changes, so it's important
|
||||||
// we don't set it if it doesn't change. Same goes for the $panelBody!
|
// we don't set it if it doesn't change. Same goes for the $panelBody!
|
||||||
|
|
|
@ -223,6 +223,9 @@
|
||||||
.user-menu {
|
.user-menu {
|
||||||
|
|
||||||
.notifications {
|
.notifications {
|
||||||
|
width: 100%;
|
||||||
|
display: table;
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
padding: 0 0.4em;
|
padding: 0 0.4em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
Loading…
Reference in New Issue