PDA

View Full Version : [2.1.1-beta] - layout problem ie != ff



diegolovison
28 Jan 2010, 4:53 AM
final TextField<String> searchField = new TextField<String>();
searchField.setWidth(195);

final Button searchButton = new Button("XXX");
searchButton.setStyleAttribute("padding", "0px 0px 0px 5px");

final HorizontalPanel hPanel = new HorizontalPanel();
hPanel.add(searchField);
hPanel.add(searchButton);

final BorderLayoutData dataNorth = new BorderLayoutData(LayoutRegion.NORTH, 35, 35, 35);
dataNorth.setMargins(new Margins(5, 5, 5, 5));
dataNorth.setFloatable(false);

final ContentPanel panelNorth = new ContentPanel();
panelNorth.add(hPanel);
panelNorth.setHeaderVisible(false);
panelNorth.setLayout(new FitLayout());
panelNorth.syncSize();
panelNorth.setBodyBorder(false);
panelNorth.setFrame(true);

final com.extjs.gxt.ui.client.widget.Window window = new com.extjs.gxt.ui.client.widget.Window();
window.setBodyBorder(false);
window.setHeading("YYY");
window.setWidth(1000);
window.setHeight(600);
window.setMaximizable(true);
window.setLayout(new BorderLayout());
window.setMinWidth(600);
window.setMinHeight(400);
window.add(panelNorth, dataNorth);

window.show();


gwt 2.0 and gxt2.1.1-beta for gwt 2.0

ff 3.5 - ok
ie 7 or 8 - fail
chrome - ok

diegolovison
29 Jan 2010, 7:26 AM
the problem its with the height of the textfield...