mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
- minimize overflow issues with menu elements in mobile theme
This commit is contained in:
parent
41df373898
commit
1e4aedb5c7
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue