Aug 13, 2012, 12:39 PM
[CLOSED] Border Layout + Accordion problems
Hi, I'm creating an Accordion Layout inside a collapsed Border Layout region. The 'tabs' of the accordion layout don't pick up the heights of the VBox layouts when the border layout is opened as a 'floating' panel. See attached code + reproduction steps.
Note that it works when using the expand button instead of floating the panel.
Any idea how to fix this?
- Run attached code, panel with accordion layout starts collapsed.
- Click on the border region bar, not on the expand button, to open the panel in floating mode.
- When switching accordion tabs the VBox layouts have empty height, except for the first (which was initially visible).
Note that it works when using the expand button instead of floating the panel.
Any idea how to fix this?
<%@ Page language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Test Page</title>
</head>
<body>
<form runat="server" id="wForm">
<asp:ScriptManager runat="server" id="wScriptManager" />
<ext:ResourceManager runat="server" id="wResourceManager" />
<div>
<ext:Viewport runat="server">
<Items>
<ext:BorderLayout runat="server">
<West collapsible="true" split="true">
<ext:Panel runat="server" layout="Accordion" title="Menu" collapsed="true" width="200">
<Items>
<ext:Panel runat="server" title="Category 1" layout="VBox">
<Items>
<ext:LinkButton runat="server" text="Link 1" />
<ext:LinkButton runat="server" text="Link 2" />
<ext:LinkButton runat="server" text="Link 3" />
</Items>
</ext:Panel>
<ext:Panel runat="server" title="Category 2" layout="VBox">
<Items>
<ext:LinkButton runat="server" text="Link 1" />
<ext:LinkButton runat="server" text="Link 2" />
<ext:LinkButton runat="server" text="Link 3" />
</Items>
</ext:Panel>
<ext:Panel runat="server" title="Category 3" layout="VBox">
<Items>
<ext:LinkButton runat="server" text="Link 1" />
<ext:LinkButton runat="server" text="Link 2" />
<ext:LinkButton runat="server" text="Link 3" />
</Items>
</ext:Panel>
</Items>
</ext:Panel>
</West>
<Center>
<ext:Panel runat="server" title="Content" />
</Center>
</ext:BorderLayout>
</Items>
</ext:Viewport>
</div>
</form>
</body>
</html>
Last edited by Daniil; Aug 15, 2012 at 2:55 PM.
Reason: [CLOSED]