DynarchLIB
DynarchLIB copied to clipboard
bug in getSize() and setSize()
summary: DlContainer getSize() then setSize() will cause the container keep growing.
- go to http://www.dynarchlib.com/dl/index.html#sample://widgets-buttons.xml.
- click Run it.
- in the popup window, paste the following code. var btn = new DlButton({ parent : getDocCanvas(), label : "Start", iconClass : "IconChardev" }); var btn2 = new DlContainer({ parent: getDocCanvas(), }); btn2.setSize({x:100,y:200}); btn2.setStyle("border","1px solid red") btn2.setStyle("position","absolute"); btn.addEventListener("onClick",function(){ btn2.setSize(btn2.getSize()); });
- click Start several times. The red container keeps growing. Should: the red container remains the same size.