Hi Amit,
I do not answer your question, but I provide small hint for you.
This code:
members : {
_filterBar: undefined,
_navigationBar: undefined,
_table: undefined
},
Is bad. Never declare instance specific variables in 'members'
section. I members section is everything that's "shared" between all
instances and it's added to "prototype" of class. So use constructor
to initialize instance specific variables:
construct: function() {
this._filterBar = undefined;
this._navigationBar = undefined;
this._table = undefined;
}
Hope that this helps you to understand classes in qooxdoo and in javascript :-)
And about auto-sizing layout I have small tip, try to set width and
height of containers. Maybe this will help you in 0.7.3 :-)
Cheers and welcome to qooxdoo
- Petr
2008/8/27 Amit Rana <[EMAIL PROTECTED]>:
> Hi,
>
> I am new to Qooxdoo and Ajax based Frameworks. I am using Qooxdoo for the
> first time and during the last 2 months of use, I found it very simple to
> use (thanks to the extensive API and the Demo brower functionality).
>
> I have some queries :
>
> Do I always need to send a mail to start a new thread, or is there some
> functionality that I can directly log into the forum and post my question
> there ?
> I am facing a formatting issue while using Qooxdoo framework. I have 3 atoms
> (called Filter Bar, Table and Navigation Bar) which in turn hold complex
> widgets inside them. These atoms are placed one below the other (using
> Vertical Boxlayout). But, when I make my Table widget as resizable, then as
> soon as my webpage loads up, the table starts as a small box and slowly
> expands horizontally and never stops, even after going out of the screen.
>
> The code snippet is :
>
> qx.Class.define("spagobi.ui.PagedTable", {
> extend : qx.ui.layout.VerticalBoxLayout,
> members : {
> _filterBar: undefined,
> _navigationBar: undefined,
> _table: undefined
> },
>
> construct : function(controller, data) {
> //controller is the parent object which calls the
>
> PagedTable class and data is the
> table's data
> this.base(arguments);
> this._filterBar = new
> spagobi.ui.FilterBar(); // a horizontalbox Layout widget containing
>
>
> some text boxes and combo boxes
>
> this._table = new
> spagobi.ui.Table(controller, data); // creates a table with some data
>
> this._navigationBar = new
> spagobi.ui.NavigationBar(); // a Toolbar containing a Horizontal
>
> Boxlayout which itself
> contains some
>
> buttons
> }
> });
>
>
>
> Code snippet of spagobi.ui.Table :
>
> this._tableModel = new qx.ui.table.model.Simple();
> this.base(arguments, this._tableModel, {
>
> tableColumnModel : function(obj) {
>
> return new qx.ui.table.columnmodel.Resize(obj);
> }
> });
> var columnModel = this.getTableColumnModel();
> var resizeBehavior = columnModel.getBehavior();
> this._tableModel.setDataAsMapArray(data.rows, true);
> //data.rows contains the data of the table
>
>
> So, currently I am calling spagobi.ui.PagedTable class which in turn
> calls spagobi.ui.Table and this causes the table to keep on expanding.
> But, if I directly call spagobi.ui.Table, then the table gets displayed
> properly. So, how do I solve it ?
>
> --
> Amit Rana
>
> SpagoBI Developer
> Research & Innovation Division
> Engineering Ingegneria Informatica S.p.A.
> Strada 2, Palazzo D3 - 20090,
> Milanofiori Assago (Milan) - Italy
> Mobile: +39-3276115975
>
> www.eng.it
> www.spagoworld.org
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel