Hi Alex,
On Thu, Apr 30, 2009 at 2:22 PM, alex.d <[email protected]>wrote:

>
> Shouldn't be this way - i'm using a lot of images and i'm certainly
> not setting their sizes manually. Does this occur only with a
> flowpanel? Can you make a small example that demonstrates the problem?
>


Then, there must be something I did wrong.

Here is the sample code:

    public void onModuleLoad() {

        // logo.png is a 153x14 pixel image.
        Image logo = new Image("images/logo.png");

        // VerticalPanel p = new VerticalPanel();
        // HorizontalPanel p = new HorizontalPanel();
        FlowPanel p = new FlowPanel();
        p.add(logo);

        RootPanel root = RootPanel.get();
        root.add(p);
    }


When tested in hosted mode, the image is being scratched and resized.


Thanks for your help!


-- 

Hez

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