I changed my TabView.js by adding line 7 and removed the setting of
the size directly on the widget.  Now my map is 50 pixels high and
doesn't change.

What am I missing?

qx.Class.define("kiosk_portal.TabView",
{
  extend : qx.ui.tabview.TabView,
  construct : function(label)
    {
      this.base(arguments, label);
      this.getChildControl("pane").setDynamic(true);
      // Make a new Map Tab.
      this.__map_page = new kiosk_portal.OpenLayersMapTab('MAP');
      this.__map = this.__map_page.getMap();
      this.__map.addListener("pointDblClick",
        function (e) {
          var page = new kiosk_portal.KioskTab(e.getData().toString(),
e.getData());
          this.add(page)
          this.setSelection([ page ]);
        } ,this);

      this.add(this.__map_page);
    }});



On Mon, Feb 27, 2012 at 6:04 PM, Derrell Lipman
<[email protected]> wrote:
> On Mon, Feb 27, 2012 at 20:21, Scott Chapman <[email protected]> wrote:
>>
>> The tab widget size is set statically to 950x700 below.
>> How do I make it dynamic so that it's initial size and resize changes
>> as needed by the size of the Page box?
>
>
> It's not done to the Page object; rather, it's done to the TabView to which
> the Page is added, or more specifically, to the TabView's "pane".
> Internally, the pages are added to a qx.ui.container.Stack which is the
> "pane" child control of the TabView. The Stack container has a property
> called "dynamic" to specify whether the various items on the stack should be
> sized according to the largest one, or should retain their natural size.
>
> The following incantation will do what you're looking for:
>
>   tabView.getChildControl("pane").setDynamic(true);
>
> Cheers,
>
> Derrell

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to