PDA

View Full Version : [CLOSED] Panel Buttons Width



softmachine2011
Jul 10, 2012, 11:58 AM
Hi,

I have something like this example:


<ext:Panel ID="centerDetailsFormWrapper" runat="server" Layout="HBoxLayout" Height="500" Border="false" ButtonAlign="Right">
<Items>
<ext:Label runat="server" Text="Some text"></ext:Label>
</Items>
<Buttons>
<ext:Button runat="server" Icon="Accept" Width="32"></ext:Button>
<ext:Button runat="server" Icon="Cancel"></ext:Button>
</Buttons>
</ext:Panel>

But buttons width in buttons tag doesn't apply.

In Ext.NET v1.x buttons without text automatically fits around 32pixels, but now it have 69px width by default and isn't possible to set it to another width.

Thanks in advance

Daniil
Jul 10, 2012, 12:31 PM
Hi,

Please decrease the default (75) MinButtonWidth of the Panel.
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.panel.Panel-cfg-minButtonWidth

softmachine2011
Jul 10, 2012, 1:48 PM
Thanks it works!