PDA

View Full Version : [FIXED] [1.2.3] MultiField fields dissapear on Window resize



moldoe
4 Mar 2009, 7:34 AM
I have a very simple test case in which I have a resizable Window containing a FormPanel with a MultiField build from two TextFields. When I resize the window the TextFields become invisible. If I drag and move the window around they come back.

I have to mention that in version 1.2.2 it was even worse because the fields were not visible after the window was shown. I had to drag it to make the fields visible.


Windows XP
IE7 and Hosted Mode
GXT-1.2.3

Here is the code:


public class FormClient implements EntryPoint {

public void onModuleLoad() {

final Window window = new Window();
window.setLayout(new FitLayout());
window.setHeading("Resize Me");
window.setSize(400, 300);
FormPanel formPanel = new FormPanel();
TextField field1 = new TextField();
TextField field2 = new TextField();
MultiField multiField = new MultiField("Multi Field", field1, field2);
formPanel.add(multiField);
window.add(formPanel);

Viewport viewport = new Viewport();
viewport.add(new Button("Open Window", new SelectionListener<ComponentEvent>() {
@Override
public void componentSelected(ComponentEvent ce) {
window.show();
}
}));

RootPanel.get().add(viewport);
}
}

sven
4 Mar 2009, 7:44 AM
Thanks for reporting. I have a fix ready :) and it will be in svn soon. Tables are bad in IE :(

moldoe
4 Mar 2009, 7:46 AM
Thank you!

Daniel

moldoe
6 Mar 2009, 6:50 AM
When it's fixed is it going to be included in a 1.2.x release or just trunk (2.0)?

Thanks,

Daniel

sven
6 Mar 2009, 6:50 AM
Both 1.2 and 2.0 code. Will be part of the next release.

sven
1 Apr 2009, 4:17 AM
Fixed in SVN.