Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Hidden CanvasItem problem (TestCase)

    Hello,

    I've come across a problem with hidden CanvasItem on FF18.
    When item is showing it all looks ok but when it's hidden height of DynamicForm grows drastically.

    Here is a test case:
    Code:
    DynamicForm form = new DynamicForm();
    form.setBorder("1px solid red");
    
    MyCanvasItem test1 = new MyCanvasItem("test1");
    		
    MyCanvasItem test2 = new MyCanvasItem("test2");
    [B]test2.setVisible(false);[/B]
    		
    form.setFields(
    	test1,
    	test2
    );
    
    public class MyCanvasItem extends CanvasItem {
    	public MyCanvasItem(String name) {
    		super(name);
    			
    		setInitHandler(new FormItemInitHandler() {
    			public void onInit(FormItem item) {
    				Label label = new Label("test");
    				setCanvas(label);
    			}
    		});
    	}
    }
    Tested on several nightly versions (including 2013-01-29).
    Regards
    Mariusz Goch
Working...
X