Hi,
I have a CanvasItem which I pass an Img in.
When the Form is destroyed, the Img itself isn't.
Do I need to manage that myself?
case:
attached screenshot: before and after hitting destroy
FireFox 4 - gwt dev mode
SmartClient Version: SNAPSHOT_v8.3d_2012-04-04/Pro Deployment (built 2012-04-04)
I have a CanvasItem which I pass an Img in.
When the Form is destroyed, the Img itself isn't.
Do I need to manage that myself?
case:
Code:
String fieldName = "fieldX"; String imageURL = "[SKINIMG]/actions/approve.png"; DynamicForm form = new DynamicForm(); form.setTitleOrientation(TitleOrientation.TOP); form.setTitleSuffix(""); form.setNumCols(2); CanvasItem myImg = new CanvasItem(); myImg.setCanEdit(true); myImg.setCanvas(new Img(imageURL)); myImg.setShowTitle(false); myImg.setName(fieldName + "_image"); TextItem text = new TextItem(); text.setShowTitle(false); text.setName(fieldName); form.setFields(myImg, text); final HLayout container = new HLayout(); container.setMembers(form); Button d = new Button("destroy"); d.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { container.destroy(); } }); VLayout layout = new VLayout(); layout.setWidth(300); layout.setHeight(300); layout.setMembers(container, d); return layout;
FireFox 4 - gwt dev mode
SmartClient Version: SNAPSHOT_v8.3d_2012-04-04/Pro Deployment (built 2012-04-04)
Comment