Agreed that this is a really irritating bug in Firefox. Have you tried w/h:100% just on the button itself? This is required for <table> and <iframe> on all browsers, though it's not baked into the Layout code by default, because it mis-lays-out slightly (pushes borders and margin off the edge).
On Wed, Jan 20, 2010 at 7:58 AM, ggeorg <[email protected]>wrote: > Hi, > > is there a workaround for : > > public void onModuleLoad() { > LayoutPanel panel = new LayoutPanel(); > > panel.add(new Button("Hello!")); > > RootLayoutPanel.get().add(panel); > } > > left: 0px; right: 0px; together do not work in Firefox 3.5.6 (top: > 0px; bottom: 0px; work). > > There is also the same problem with TextBox in both Firefox and IE8. > With TextBox even vertical alignment does not work. > > What I found so far is > http://www.quirksmode.org/css/tests/mozie_button.html, > but -moz-box-sizing: content-box; does not help. Maybe there is > something else. Button.setWidth("100%") works perfect, but it fails > for <div> elements with margin and border. > > Thanks, > George. > > -- > http://groups.google.com/group/Google-Web-Toolkit-Contributors >
-- http://groups.google.com/group/Google-Web-Toolkit-Contributors
