Apr 30, 2009, 3:47 PM
[CLOSED] Panel + Toolbar + Element Resize
Hi guys.
Trying to add a Textbox on a Toolbar in a GridPanel. I need the Textbox to "fill" any remaining space in the Toolbar. Anyone have a solution for this? This is the code I have so far.
Trying to add a Textbox on a Toolbar in a GridPanel. I need the Textbox to "fill" any remaining space in the Toolbar. Anyone have a solution for this? This is the code I have so far.
<ext:FitLayout runat="server">
<ext:Panel runat="server" Title="" border="false">
<Body>
Some data will go here
</Body>
<BottomBar>
<ext:Toolbar runat="server" AutoWidth="true">
<Items>
<!-- need this to resize to fill "rest" of toolbar -->
<ext:TextField ID="tInput" runat="server" IDMode="Static />
<ext:ToolbarSpacer Width="3" />
<ext:Button ID="bSend" runat="server" Text="Send" Icon="CommentEdit" />
</Items>
</ext:Toolbar>
</BottomBar>
</ext:Panel>
</ext:FitLayout>
I have tried setting the StyleSpec="width:100%" for the TextField, but that didn't seem to help.