-
25 Nov 2010 10:16 PM #1
problem in LayoutContainer alignment
problem in LayoutContainer alignment
Hi
I have written a GXT application and i want to place the gxt object with center alignment in the browser.
However, i have tried with setStyleAttribute, it fails.
Then i set the style name to the container and do it in the css file included in the html, it fails too.
So what can i do to make it center?
Here is my simple code.
ThanksCode:LayoutContainer container = new LayoutContainer(); container.setStyleAttribute("margin", "10px"); container.setLayout(new FlowLayout()); container.setSize(800, 600); container.setBorders(true); container.setStyleName("formPainter_main"); RootPanel.get().add(container);
-
26 Nov 2010 4:08 AM #2
How do you want to center it? Your code does not contain any logic to center it. Which rules do "formPainter_main" assign to it?
Similar Threads
-
Problem with a margin between a LayoutContainer and a FieldSet
By pbt in forum Ext GWT: DiscussionReplies: 1Last Post: 6 Sep 2010, 9:11 AM -
problem the display grids & forms in LayoutContainer
By yous in forum Ext GWT: DiscussionReplies: 0Last Post: 21 Jul 2009, 3:18 AM -
GXT 1.1.3 Problem using FitLayout with LayoutContainer
By edfimasa in forum Ext GWT: Help & Discussion (1.x)Replies: 3Last Post: 22 Nov 2008, 12:07 PM -
alignment problem
By albert.sole in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 6 May 2008, 3:20 AM


Reply With Quote