N°7264 - Fix visual glitches due to seletize.js upgrade

This commit is contained in:
Molkobain
2024-04-04 15:01:57 +02:00
parent 3f401e4de0
commit 4ca92affcf
5 changed files with 80 additions and 66 deletions

View File

@@ -321,6 +321,11 @@ function ExtKeyWidget(id, sTargetClass, sFilter, sTitle, bSelectMode, oWizHelper
* @return {void}
*/
this.UpdateDropdownPosition = function (oControlElem, oDropdownElem) {
// First fix width to ensure it's not too long
const fControlWidth = oControlElem.outerWidth();
oDropdownElem.css('width', fControlWidth);
// Then, fix height / position to ensure it's within the viewport
const fWindowHeight = window.innerHeight;
const fControlTopY = oControlElem.offset().top;