File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is there any padding attribute for DockLayoutPanel?

 
peter tong
Ranch Hand
Posts: 245
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10967
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try playing around with the widget css padding and/or margin
 
peter tong
Ranch Hand
Posts: 245
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
problem2.JPG
[Thumbnail for problem2.JPG]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic