Hi Jamie,

Thanks for the info, yeah firebug has been a big help. I'm not getting
one part of the layout now (the rest works). I just want a
HorizontalPanel split in two, with the left portion a fixed-width:

   HorizontalPanel hp = new HP();
   hp.setStyleName("hp");
   hp.add(new VerticalPanel(),setStyleName("vp1"));
   hp.add(new VerticalPanel().setStyleName("vp2"));

   .hp {
       width: 100%
    }
    .vp1 {
       width: 200px;
    }
    .vp2 {
        width: 100%;
    }

the 'left' panel is indeed 200px, but the right panel flows as I
change the browser frame width. I have to do this programatically to
get it to behave as I want:

    hp.setCellWidth(vp1, "200px");
    hp.setCellWidth(vp2, "100%");

which is ok, but can't I do it via CSS? Otherwise I have to recompile
the app if I every want to tweak it,

Thanks


On Jun 18, 11:55 am, Jamie <[email protected]> wrote:
> First off, I would recommend installing Firefox + Firebug; firebug
> lets you inspect the layout of elements, and will give you a good idea
> of how the browser is placing things.  It is really cool; if you click
> the "Inspect" button, you can hover over your page and see what
> elements are where, and click on one to find it in the DOM.
>
> Next, the HorizontalPanel, by default, is only as wide as it needs to
> be.
> You can try calling hp.setWidth("100%").  The HorizontalPanel also has
> an alignment parameter, so you can align left, right, or center.
>
> Jamie.
> -----------------------
> Search for analog and digital television broadcast antennas in your
> area:http://www.antennamap.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to