فهرست منبع

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

Nicolas Cannasse 5 سال پیش
والد
کامیت
c5bb0d9c33
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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;
 			}
 		}