mishoo/DynarchLIB — Issue #1: bug in getSize() and setSize()
Author: qiyun
Created: 2011-12-07 03:14:20+00:00
State: open

summary: DlContainer getSize() then setSize() will cause the container keep growing.

1. go to http://www.dynarchlib.com/dl/index.html#sample://widgets-buttons.xml.
2. click Run it.
3. 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());
});
4. click Start several times. The red container keeps growing.
Should: the red container remains the same size.