Explorar o código

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

Nicolas Cannasse %!s(int64=5) %!d(string=hai) anos
pai
achega
c5bb0d9c33
Modificáronse 1 ficheiros con 1 adicións e 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;
 			}
 		}