Procházet zdrojové kódy

position dropDownList after onOpen() - allow content update and rollUp change

Nicolas Cannasse před 5 roky
rodič
revize
c5bb0d9c33
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      h2d/Dropdown.hx

+ 1 - 1
h2d/Dropdown.hx

@@ -90,10 +90,10 @@ class Dropdown extends Flow {
 				close();
 			} else if( canEdit ) {
 				var bds = this.getBounds();
-				dropdownList.y = rollUp ? bds.yMin - dropdownList.getSize().height : bds.yMax;
 				dropdownList.x = bds.xMin;
 				dropdownList.minWidth = this.minWidth;
 				open();
+				dropdownList.y = rollUp ? bds.yMin - dropdownList.getSize().height : bds.yMax;
 			}
 		}