Sep 28, 2010, 4:30 PM
Weird Behaviour of <Content> of <ext:Panel>
Hi everyone, once again xD
I have a BorderLayout which its center panel has another panel with a "fit" layout.
In the <Content> tag of this last panel, I have 2 <ext:Panel>. The problem is that when I run the project, I can see only one of this 2 panels! (the one which is firstly declared). But the weird is that if I put a "label" before them and I run the project, I can see both! (and the label too).
I can put an invisible "label", and my problem might be solved, but.. why this happen? why I can't just put the two panels and see them both when I run the project?
I CAN'T SEE BOTH PANELS:
Thanks again!,
Christian.
I have a BorderLayout which its center panel has another panel with a "fit" layout.
In the <Content> tag of this last panel, I have 2 <ext:Panel>. The problem is that when I run the project, I can see only one of this 2 panels! (the one which is firstly declared). But the weird is that if I put a "label" before them and I run the project, I can see both! (and the label too).
I can put an invisible "label", and my problem might be solved, but.. why this happen? why I can't just put the two panels and see them both when I run the project?
I CAN'T SEE BOTH PANELS:
// ... this is the center panel of a BorderLayout
<Center Split="true">
<ext:Panel ID="pCentral" runat="server" Title="Central Data" Layout="Fit">
<Content>
<ext:Panel ID="p1" runat="server" Border="false">
// the content of panel 1..
</ext>
<ext:Panel ID="p2" runat="server" Border="false">
// the content of panel 2...
</ext>
</Content>
</ext:Panel>
</Center>
I CAN SEE BOTH PANELS!!// ... this is the center panel of a BorderLayout
<Center Split="true">
<ext:Panel ID="pCentral" runat="server" Title="Central Data" Layout="Fit">
<Content>
<ext:Label ID="lbl" runat="server" Text="Hello, I'm the magic label who allows seeing both panels">
</ext:Label>
<ext:Panel ID="p1" runat="server" Border="false">
// the content of panel 1..
</ext>
<ext:Panel ID="p2" runat="server" Border="false">
// the content of panel 2...
</ext>
</Content>
</ext:Panel>
</Center>
It would be great if someone could explain me how this works... or why it happens.Thanks again!,
Christian.