mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix context menu position on the right window side (#5760)
* Fix context menu position on the right window side * Update CHANGELOG.md (#5760) Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
This commit is contained in:
parent
8e9fdf214d
commit
9736bdeea5
@ -7,8 +7,10 @@ HumHub Changelog
|
||||
- Fix #5734: Fix error message when uninstall module and module folder is not writable
|
||||
- Fix #5740: Fix logout action on force change password
|
||||
- Fix #5735: OEmbed migration might fail with more complex Endpoint URLs
|
||||
- Fix #5760: Fix context menu position on the right window side
|
||||
- Fix #5759: Fix tests on enable space module
|
||||
|
||||
|
||||
1.11.2 (May 30, 2022)
|
||||
---------------------
|
||||
- Fix: #5652: Fix undefined UrlOembed provider pattern
|
||||
|
@ -380,8 +380,9 @@ humhub.module('ui.additions', function (module, require, $) {
|
||||
settings.menuSelected.call(this, $invokedOn, $selectedMenu, e);
|
||||
});
|
||||
|
||||
if ($menu.position().left + $menu.outerWidth() > $(window).width()) {
|
||||
$menu.css('left', $(window).outerWidth() - $menu.width() - 5);
|
||||
var menuShift = $menu.offset().left + $menu.outerWidth() - $(window).width();
|
||||
if (menuShift > 0) {
|
||||
$menu.css('left', $menu.position().left - menuShift - 5);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user