aspose file tools
The moose likes GWT and the fly likes is there any padding attribute for DockLayoutPanel? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » GWT
Reply Bookmark "is there any padding attribute for DockLayoutPanel?" Watch "is there any padding attribute for DockLayoutPanel?" New topic
Author

is there any padding attribute for DockLayoutPanel?

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 234
I have a SplitLayoutPanel, in the right hand side, I add a DockLayoutPanel and add some widget in the DockLayoutPanel.WEST position,
but I found the widget is too close to the border of the SplitLayoutPanel, is there any cell padding property of DockLayoutPanel?

I think a maybe foolish method, need add a VerticalPanel and setSize and add to the DockLayoutPanel.WEST first to fill up some space,
but is there any better or easier method?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8436

You can try playing around with the widget css padding and/or margin


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 234
Maneesh Godbole wrote:You can try playing around with the widget css padding and/or margin


try before but no any effect.
the css is


the relevant code is


the result is like attach picture, no border and no padding!!


[Thumbnail for problem2.JPG]

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: is there any padding attribute for DockLayoutPanel?
 
Similar Threads
New to GWT - struggling with a component arrangement issue
How to add programmatically widget on Home screen
GWT Entry point Configuration
Nested layout help, DockLayoutPanel
Pop up which will fix to window's left top coner without effected by scrolling