Apr 05, 2011, 7:06 PM
[CLOSED] Scrolling using FitLayout / RowLayout / Panel - how to get it working?
So I have been trying to get some scrolling going, but I guess someone needs to explain to me how it works because its pretty far from obvious.
This gets a scrollbar:
This gets a scrollbar:
<ext:FitLayout runat="server">
<Items>
<ext:Panel ID="Panel1" runat="server" AutoScroll="true">
<Items>
<ext:Label runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label1" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label2" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label3" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label4" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label5" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label6" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label7" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label8" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label9" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
</Items>
</ext:Panel>
</ext:FitLayout>
this does not get a scrollbar:<ext:FitLayout runat="server">
<Items>
<ext:Panel ID="Panel1" runat="server" AutoScroll="true">
<Items>
<ext:RowLayout ID="RowLayout1" runat="server" Split="false">
<Rows>
<ext:LayoutRow>
<ext:Panel runat="server">
<Items>
<ext:Label runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label1" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label2" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label3" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label4" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label5" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label6" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label7" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label8" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
<ext:Label ID="Label9" runat="server" Html="asd asd asd <br /> qwe qwe qwe <br /> fgh fgh fgh <br />"></ext:Label>
</Items>
</ext:Panel>
</ext:LayoutRow>
</Rows>
</ext:RowLayout>
</Items>
</ext:Panel>
</Items>
</ext:FitLayout>
My logic tells me that it should get scrollbars in both cases. What am I missing?
Last edited by Daniil; Apr 06, 2011 at 10:20 AM.
Reason: [CLOSED]