How to remove Space between disclosure panels

2010-12-21 Thread gandham satish
Hi All,

I am  trying to add 2 disclosure panels to main panel (vertical panel)
but the promblem is that I am gettign a space in between disclosure
panels even after I set the width properly. Here is the sample code

 SimplePanel simPanel = new SimplePanel();
 simPanel.setHeight(400px);
 simPanel.setWidth(1000px);

 DisclosurePanel disPanel1 = new DisclosurePanel(Requests);
 disPanel1.setContent(simPanel);
DisclosurePanel disPanel2 = new DisclosurePanel(Inbox);
 disPanel2.setContent(simPanel);


 VerticalPanel vPanel = new VerticalPanel();
 vPanel.add(disPanel1 );
 vPanel.add(disPanel2);
 vPanel.setSpacing(0);

I have added the above vertical panel in my DockPanel center. when I
open the disclosure panels then the space is getting adjusted but
whenever I close the panels I am seeing some space in between the
panels.

Is there anyway I can Place these panels together even in the close
position.

I appreciate your help.

Thanks,
Satish

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to remove Space between disclosure panels

2010-12-21 Thread zixzigma
use DockLayoutPanel,
and use your other panels within regions of DockLayoutPanel.


DockLayoutPanel, can have multiple north region, multiple west,
multiple east,
you can have DockLayoutPanels within DockLayoutPanels.

avoid using Vertical/Horizontal Panel, in favor of DockLayoutPanel/
FlowPanel/SimplePanel.

Vertical/Horizontal panels uses HTMl table underneath, wich many CSS
designers hate.
those other panels I mentioned, produce simple divs

an example of how to use DockLayoutPanel in the fashion I described
can be found in GWT Mail Example:

http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/mail/src/com/google/gwt/sample/mail/client/Mail.ui.xml?r=9471

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to remove Space between disclosure panels

2010-12-21 Thread gandham satish
Hi zix,


Thanks for your quick reply.

As you mentioned I have added my 2 disclosure panels in a DockLayout
panel.But still I am seeing the spacing problem between the
panels.What I am expecting is that whenevr I close the first
disclosure panel then the second panel should occupy the remaining
space.Am I missing any width  setting here.

DisclosurePanel disPanel1 = new DisclosurePanel(Requests);
 disPanel1.setContent(simPanel);
DisclosurePanel disPanel2 = new DisclosurePanel(Inbox);
 disPanel2.setContent(simPanel);

DockLayoutPanel dockPanel = new DockLayoutPanel(Unit.PX);
 dockPanel.addNorth(disPanel1 ,150);
 dockPanel.add(disPanel2 );


DockLayoutPanel mainPanel = new DockLayoutPanel(Unit.PX);
 mainPanel .addNorth(Menu ,150);
 mainPanel .add(dockPanel );




Thanks,
Satish





On Dec 21, 1:24 pm, zixzigma zixzi...@gmail.com wrote:
 use DockLayoutPanel,
 and use your other panels within regions of DockLayoutPanel.

 DockLayoutPanel, can have multiple north region, multiple west,
 multiple east,
 you can have DockLayoutPanels within DockLayoutPanels.

 avoid using Vertical/Horizontal Panel, in favor of DockLayoutPanel/
 FlowPanel/SimplePanel.

 Vertical/Horizontal panels uses HTMl table underneath, wich many CSS
 designers hate.
 those other panels I mentioned, produce simple divs

 an example of how to use DockLayoutPanel in the fashion I described
 can be found in GWT Mail Example:

 http://code.google.com/p/google-web-toolkit/source/browse/trunk/sampl...

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to remove Space between disclosure panels

2010-12-21 Thread Thomas Broyer
VerticalPanel are hardly necessary. Most of the time, a FlowPanel would work 
seamlessly. Give it a try (with no guarantee though, you'd have to first 
understand what this gap comes from, using browser developer tools such as 
Firebug or Web Inspector).

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to remove Space between disclosure panels

2010-12-21 Thread Ian Bambury
I seem to remember that you get this if the disclosure panel is empty
- disPanel1 is
empty since you add simPanel to it but then add simPanel to disPanel2

Ian

On 21 December 2010 10:27, Thomas Broyer t.bro...@gmail.com wrote:

 VerticalPanel are hardly necessary. Most of the time, a FlowPanel would
 work seamlessly. Give it a try (with no guarantee though, you'd have to
 first understand what this gap comes from, using browser developer tools
 such as Firebug or Web Inspector).

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.