Run the attached test case. Click the windows anywhere except the text fields and none of the windows are brought to the front unless you first click one of the text fields (which sometimes does not work either). This seems to be a regression in version 5 from version 4.
I have tried SmartGWT 5.1d-2014-11-30, 5.0p-2014-10-20, and 5.0p-2014-11-30 and 2 different releases of SmartGWT 4.0 in Firefox 33.1.1 and Chromium 37.0.2062.120 on Linux.
I have tried SmartGWT 5.1d-2014-11-30, 5.0p-2014-10-20, and 5.0p-2014-11-30 and 2 different releases of SmartGWT 4.0 in Firefox 33.1.1 and Chromium 37.0.2062.120 on Linux.
Code:
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Label;
import com.smartgwt.client.widgets.Button;
import com.smartgwt.client.widgets.Window;
import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.form.fields.TextItem;
import com.smartgwt.client.widgets.layout.VLayout;
public class testingEntryPoint implements EntryPoint {
public testingEntryPoint() {
}
public void onModuleLoad() {
final VLayout layout = new VLayout();
layout.setSize("100%", "100%");
layout.addChild(new CustomWindow());
final CustomWindow w2 = new CustomWindow();
layout.addChild(w2);
layout.addChild(new CustomWindow());
layout.draw();
}
int counter = 0;
class CustomWindow extends Window {
final TextItem textItem = new TextItem();
CustomWindow() {
final String title = "Window " + ++counter;
setTitle(title);
setSize("300px", "300px");
final VLayout layout = new VLayout();
addItem(layout);
setLeft(counter * 200);
setTop(counter * 100);
layout.addMember(new Label(title));
layout.addMember(new Button(title));
final DynamicForm form = new DynamicForm();
form.setItems(textItem);
textItem.setShowTitle(false);
layout.addMember(form);
}
}
}