File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
JavaRanch » Java Forums » Application 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: 219
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: 7602

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


[Donate a pint, save a life!] [How to ask questions]
peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 219
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!!
[Thumb - problem2.JPG]
 Filename problem2.JPG [Disk] Download
 Description
 Filesize 74 Kbytes
 Downloaded:  4 time(s)

 
 
subject: is there any padding attribute for DockLayoutPanel?
 
Threads others viewed
How to add programmatically widget on Home screen
GWT Entry point Configuration
Nested layout help, DockLayoutPanel
New to GWT - struggling with a component arrangement issue
Pop up which will fix to window's left top coner without effected by scrolling
developer file tools