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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » GWT
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: 240
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: 10269
    
    8

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


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

Joined: Mar 15, 2008
Posts: 240
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]

 
jQuery in Action, 2nd edition
 
subject: is there any padding attribute for DockLayoutPanel?