Works great! Thanks Adam :)
On Jan 13, 11:44 am, Adam T <[email protected]> wrote: > you need to set the size of the AbsolutePanel. > //Adam > > On 13 Jan, 02:48, "tr.x" <[email protected]> wrote: > > > Hello guys, > > > The following code does not seem to work on FF and Chrome, however > > works without any problems in IE. > > > public void onModuleLoad() > > { > > Image > > testImg = new Image("test.png"); > > testImg.setVisible( true ); > > > AbsolutePanel > > absPanel = new AbsolutePanel(); > > absPanel.add( testImg , 100, 100 ); > > > RootPanel.get().add( absPanel ); > > } > > > Bypassing the panel and adding the image directly to the RootPanel > > works fine on all browsers. > > > FireBug does not point to any errors and according to it, this is the > > code generated: > > > <div style="overflow: hidden; position: relative;"> > > <img class="gwt-Image" src="test.png" style="width: 200px; height: > > 200px; position: absolute; left: 100px; top: 100px;"/> > > </div> > > > Changing the panel from an absolute panel to any other panel i.e. > > SimplePanel also does not seem to work. > > > If someone can please point me in the right direction as this problem > > is driving me crazy! > > > Thanks in advance, > > > tr.x --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
