mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Fix search out of viewport on mobile (#6954)
This commit is contained in:
parent
ba9e87eba0
commit
1e50f6f978
@ -345,8 +345,8 @@ humhub.module('ui.search', function(module, require, $) {
|
||||
// Centralize panel if it is over window
|
||||
const menuTogglerLeft = this.getMenuToggler().offset().left;
|
||||
const currentTogglerLeft = this.getCurrentToggler().offset().left;
|
||||
const windowWidth = $(window).width();
|
||||
const panelWidth = this.getPanel().width();
|
||||
const windowWidth = Math.round($(window).width());
|
||||
const panelWidth = Math.round(this.getPanel().width());
|
||||
let isPanelShifted = false;
|
||||
if (menuTogglerLeft === currentTogglerLeft) {
|
||||
this.getPanel().css('left', '');
|
||||
|
Loading…
x
Reference in New Issue
Block a user