mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 06:08:21 +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 #5734: Fix error message when uninstall module and module folder is not writable
|
||||||
- Fix #5740: Fix logout action on force change password
|
- Fix #5740: Fix logout action on force change password
|
||||||
- Fix #5735: OEmbed migration might fail with more complex Endpoint URLs
|
- 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
|
- Fix #5759: Fix tests on enable space module
|
||||||
|
|
||||||
|
|
||||||
1.11.2 (May 30, 2022)
|
1.11.2 (May 30, 2022)
|
||||||
---------------------
|
---------------------
|
||||||
- Fix: #5652: Fix undefined UrlOembed provider pattern
|
- 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);
|
settings.menuSelected.call(this, $invokedOn, $selectedMenu, e);
|
||||||
});
|
});
|
||||||
|
|
||||||
if ($menu.position().left + $menu.outerWidth() > $(window).width()) {
|
var menuShift = $menu.offset().left + $menu.outerWidth() - $(window).width();
|
||||||
$menu.css('left', $(window).outerWidth() - $menu.width() - 5);
|
if (menuShift > 0) {
|
||||||
|
$menu.css('left', $menu.position().left - menuShift - 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user