SVGHMI: HMI:DropDown element is brought in front when opened, so that it isn't occulted by other widgets at the same level. svghmi
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Tue, 14 Apr 2020 17:15:02 +0200
branchsvghmi
changeset 2928 c73d0b042ca8
parent 2927 23c35f3ba111
child 2929 9179cbc6fc49
SVGHMI: HMI:DropDown element is brought in front when opened, so that it isn't occulted by other widgets at the same level.
svghmi/widget_dropdown.ysl2
--- a/svghmi/widget_dropdown.ysl2	Tue Apr 14 17:13:12 2020 +0200
+++ b/svghmi/widget_dropdown.ysl2	Tue Apr 14 17:15:02 2020 +0200
@@ -146,6 +146,7 @@
         }
         this.adjust_box_to_text();
         this.element.removeChild(this.button_elt);
+        this.element.parentNode.appendChild(this.element.parentNode.removeChild(this.element));
         // disable interaction with background
         document.addEventListener("click", this.bound_inhibit_click_elsewhere, true);
         this.opened = true;