mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Stabilise feature tests for continuous running on CI systems. Fixes #3136.
This commit is contained in:
committed by
Akshay Joshi
parent
57660d131f
commit
70c95fcdd5
@@ -499,6 +499,22 @@ define('tools.querytool', [
|
||||
};
|
||||
});
|
||||
|
||||
/* If the screen width is small and we hover over the Explain Options,
|
||||
* the submenu goes behind the screen on the right side.
|
||||
* Below logic will make it appear on the left.
|
||||
*/
|
||||
$('.dropdown-submenu').on('mouseenter',function() {
|
||||
var menu = $(this).find('ul.dropdown-menu');
|
||||
var menupos = $(menu).offset();
|
||||
|
||||
if (menupos.left + menu.width() > $(window).width()) {
|
||||
var newpos = -$(menu).width();
|
||||
menu.css('left',newpos);
|
||||
}
|
||||
}).on('mouseleave', function() {
|
||||
var menu = $(this).find('ul.dropdown-menu');
|
||||
menu.css('left','');
|
||||
});
|
||||
|
||||
self.reflectPreferences();
|
||||
|
||||
|
Reference in New Issue
Block a user