In Firefox, but not Safari, and haven't tried IE... the following code
results in an image that is scaled down ever so slightly, just enough
to look bad. Does anyone have a workaround or know the cause of this?
I tried replacing the HTML with an Image object but the same scaling
happens.
w/ GWT 1.5.2

 outerPanel = new DockPanel();
                 outerPanel.setSpacing(20); // pts will be margin
                 outerPanel.setSize("100%", "100%");
                 outerPanel.setHorizontalAlignment(DockPanel.ALIGN_CENTER);

                 // create main layout vertical panel
                 vertPanel = new VerticalPanel();
                 vertPanel.setWidth("100%");

                 // add a top section to the main layout vertpanel
                 HorizontalPanel topLayout = new HorizontalPanel();
        
topLayout.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
                 topLayout.setVerticalAlignment( 
HasVerticalAlignment.ALIGN_MIDDLE);
                 topLayout.setSpacing(10);//pts
                topLayout.setHeight("60px");

                 HTML sfiHome=new HTML("<a href='http://www.mydomain.edu'
target='_blank'><img src='my-logo-155.gif' width='155' height='51'
border='0'/></a>");
                 topLayout.add(sfiHome);

//...


                 Window.addWindowResizeListener(this);

                 DeferredCommand.addCommand(new Command() {
                         public void execute() {
                                 onWindowResized(Window.getClientWidth(), Window
                                                 .getClientHeight());
                         }
                 });


//...

 public void onWindowResized(int width, int height)
          {
                 outerPanel.setWidth( width+"px");
          }




--~--~---------~--~----~------------~-------~--~----~
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