when using layout panels its recommended to place layoutPanels inside other layoutPanels. This would ensure the panels automatically resize.

In your case try to set the width & height of your tabLayoutPanel and its contents area.

thanks
Ashwin


On Friday 05 August 2011 10:40 AM, Dave Potts wrote:
Hi
I trying to construct a dialog with a base of a dockpanel with a
tablayoutpnael in the 'south' area.  An attempt to add an element to any
off the tab panel results in a display that only shows the tab header.

Looking a html/dom tree/display with firebug does not show anything
useful, is this type off thing a known problem.

I construct my tablayout panel and add several panels constructed from
FLOWPanels, I add elements to the FLOWPanels,  I expected something to be
shown or something to hidden in the firebug window.

my code reads as follows

public final  class MkMainDisplay extends TabLayoutPanel {


        public MkMainDisplay(MkLayers theLayers) {
                super(1.5, Unit.EM);
                this.theLayers=theLayers;
                BaseTabPanel tabPan,routePan,portPan;
                tabPan=new InfoPanel(Info);
                 addPan(tabPan);
                 BLAH BLAH

         private void addPan(BaseTabPanel pan){
                add(pan,pan.getName());
                BLAH BLAH

in the class InfoPanel

public class InfoPanel extends BaseTabPanel
         public InfoPanel(String name) {
                super(name);
                add(new HTML("Hello world I am panel"));
        }
          BLAH BLAH
In the class BaseTabPanel

public class BaseTabPanel extends FlowPanel {

        private String name;
        public BaseTabPanel(String name) {
                super();
                this.name=name;
        }
         BLAH BLAH

Am I doing something wrong or have I forgotten to do something important?

Dave










--
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-toolkit@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.

Reply via email to