- minimize overflow issues with menu elements in mobile theme

This commit is contained in:
Max Pozdeev 2020-10-13 23:30:46 +03:00
parent 41df373898
commit 1e4aedb5c7

View file

@ -1877,6 +1877,8 @@ function mttMenu(container, options)
this.$container.addClass('mtt-left-adjusted mtt-right-adjusted');
this.$container.width( $(window).width() - (this.$container.outerWidth(true) - this.$container.width()) );
}
//round the width to avoid overflow issues
this.$container.width( Math.ceil(this.$container.width()) );
$caller.addClass('mtt-menu-button-active');
var offset = $caller.offset();