Gaurav Jauhri schrieb:
> Kenny Tilton wrote:
>
>> Gaurav Jauhri wrote:
>>
>>> Kenny Tilton wrote:
>>>
>>>
>>>> Gaurav Jauhri wrote:
>>>>
>>>>
>>>>
>>>>> Hi,
>>>>>
>>>>> Can anyone tell me the equivalent of the following snippet in 0.8.
>>>>> I am migrating my application from 0.7 to 0.8.
>>>>> My table also uses columnmodel Resize property.
>>>>>
>>>>> var table = new qx.ui.tree.Tree();
>>>>> table.setHeight('1*');
>>>>>
>>>>> According to the above lines, My table occupies all the height left
>>>>> in the widget, it is added in.
>>>>>
>>>>> I also have another query, in 0.8 when i do not specify any height,
>>>>> only the 1st 3 lines of the table appear, is there is any height
>>>>> hard coded in the internal class?
>>>>>
>>>>>
>>>> What is the containing layout? I am new to QX, but in a vbox or hbox
>>>> I use:
>>>>
>>>> this.add(my-widget, { flex: 1 });
>>>>
>>>> where the other widgets are added without a flex and default to 0,
>>>> so my-widget gets all the rest.
>>>>
>>>> Note that this is true whatever class my-wdget is.
>>>>
>>>>
>>> Thanks a lot Kenny.
>>>
>>> The layout is VBox, I just have one problem.
>>> It is working fine, but my Vbox is inside a Vsplitpane and when i add
>>> it without giving any argument (like 0 or 1), the split pane is
>>> divided equally but when i give 0 as one of the arguments then only
>>> the 1st 3 lines of the table appear which i do not want, rather i
>>> want that 5-6 rows should appear, but when i drag it down, the table
>>> extends(which is what i wanted and its correct).
>>> Is there is any way to change the count of rows from 3(which is by
>>> default)to some other desired count.?
>>>
>> I am afraid you lost me on both what you are doing now and what you
>> want to happen. Code is usually clearer than natural language. :) But
>> as to your specific question, if as often happens I cannot find things
>> in the API I just search the source code till I find it. But I just
>> spotted this:
>>
>> http://demo.qooxdoo.org/current/apiviewer/#qx.ui.table.pane.Pane
>>
>> look for "visibleRowCount". What I do not know is if that then becomes
>> a fixed value. Hopefully someone better informed will come along.
>>
>> You might also try a minimum height.
>>
>> wish I knew more,
>>
>> kenny
>>
>>
>>
> Yeah i tried giving some height and it works, since the flex of the
> table widget is 1 and when I drag the split pane down, the table expands
> as well. Its working fine, though now i am stuck with another problem,
> in the upper part of the split pane, when there is enough space to
> accomodate all the rows of the table, the scroll bar should not appear
> but it is showing up even when the rows of my table are less than the
> space present in the upper part of the split pane, I will try doing
> something to rectify this problem now.
>
> Thanks for the help Kenny
> Regards,
> Gaurav!!
>
>
Hi Gaurav,
can you post a screenshot? I have just fixed a scrollbar related table
bug. Maybe it is fixed not.
Best Fabian
--
Fabian Jakobs
JavaScript Framework Developer
1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe
Amtsgericht Montabaur HRB 6484
Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas
Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, Achim
Weiss
Aufsichtsratsvorsitzender: Michael Scheeren
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel