Hi 
I want to align some Buttons to the Left in my HorizontalPanel.

This is my examplecode.

     public void onModuleLoad() {
>     
>     HorizontalPanel buttonsPanel = new HorizontalPanel();
>     
>     Button test1 = new Button("Test1");
>     Button Test2 = new Button("Test me ");
>     
> buttonsPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
>     buttonsPanel.setWidth("100%");
>     buttonsPanel.add(test1);
>     buttonsPanel.add(Test2);
>     RootPanel.get("buttoncontainer").add(buttonsPanel);
>     
>     }


But in this way there is a lot of space between these Buttons. But I want 
them to stick together. Any Suggestions ? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/TU867zOhl80J.
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