Explorar el Código

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

Nicolas Cannasse hace 5 años
padre
commit
c5bb0d9c33
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
 			}
 		}