sticky top small screen fix
This commit is contained in:
@@ -1116,6 +1116,10 @@ function (Dep, ViewRecordHelper, ActionItemSetup) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (isSmallScreen && $('#navbar .navbar-body').hasClass('in')) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (scrollTop > stickTop) {
|
||||
if (!$containers.hasClass('stick-sub')) {
|
||||
$containers.addClass('stick-sub');
|
||||
|
||||
@@ -623,11 +623,11 @@ function (Dep, MassActionHelper, ExportHelper) {
|
||||
let screenWidthXs = this.getThemeManager().getParam('screenWidthXs');
|
||||
let navbarHeight = this.getThemeManager().getParam('navbarHeight');
|
||||
|
||||
let isSmallWindow = $(window.document).width() < screenWidthXs;
|
||||
|
||||
let getOffsetTop = (element) => {
|
||||
let offsetTop = 0;
|
||||
|
||||
let isSmallWindow = $(window.document).width() < screenWidthXs;
|
||||
|
||||
let withHeader = !isSmallWindow && !isModal;
|
||||
|
||||
do {
|
||||
@@ -685,6 +685,10 @@ function (Dep, MassActionHelper, ExportHelper) {
|
||||
let stickTop = buttonsTop;
|
||||
let edge = middleTop + $middle.outerHeight(true);
|
||||
|
||||
if (isSmallWindow && $('#navbar .navbar-body').hasClass('in')) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (scrollTop >= edge) {
|
||||
$stickedBar.removeClass('hidden');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user