Hi,

setWidth("100%") without any margin or border works

I was hoping there would be a custom css property that could fix that.

Thanks,
George.

On 01/20/2010 05:27 PM, Joel Webber wrote:
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] <mailto:[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

Reply via email to