I also got trouble with DockLayoutPanel and IE6, and it doesn't have
anything with Unit.EM. I use Unit.PX, and in FF/Safari I got proper
styles on child widgets, that is
right: 0px; bottom: 0px; position: absolute; left: 0px; top: 0px;
and in IE6
there is something containing width:32px , how's that even possible,
where's that 32 coming from? Bulgaria?
On Oct 5, 9:01 pm, John Patterson <
jdpatter...@gmail.com> wrote:
> Right, I have reverted my code to use EM's and can see the problem
> again. The code below also shows the problem. It uses a map in the
> centre panel and I am not sure if this is where the problem arises.
>
> <!DOCTYPE HTML>
>
> <html>
> <head>
> <meta http-equiv="content-type" content="text/html; charset=UTF-8">
> <script src="
http://maps.google.com/maps?gwt=1&file=api&v=2&sensor=false
> "></script>
> <script type="text/javascript" language="javascript"
> src="search.nocache.js"></script>
>
> </head>
>
> <body>
> </body>
>
> </html>
>
> public void onModuleLoad()
> {
> DockLayoutPanel p = new DockLayoutPanel(Unit.EM);
> p.addNorth(new HTML("north"), 3);
> p.addSouth(new HTML("south"), 3);
> p.addEast(new HTML("east"), 10);
> p.addWest(new HTML("west"), 10);
>
> MapWidget map = new MapWidget(LatLng.newInstance(-41.1, 174.8), 5);
> p.add(map);
>
> p.layout();
>
> RootLayoutPanel rp = RootLayoutPanel.get();
> rp.add(p);
>
> rp.layout();
>
> map.checkResizeAndCenter();
> }
>
> Not sure if this image will make it into my reply:
>