[CLOSED] TextArea's RightButtons vs TextArea's height

  1. #1

    [CLOSED] TextArea's RightButtons vs TextArea's height

    When TextArea's Grow property is set to false, the right button fits TextArea's height.
    Click image for larger version. 

Name:	RightButtons1.png 
Views:	36 
Size:	1.5 KB 
ID:	24168
    <!DOCTYPE html>
    <html>
    <head runat="server">
    </head>
    <body>
        <ext:ResourceManager Theme="Gray" ScriptMode="Debug" runat="server" />
        <ext:TextArea Margin="10" FieldLabel="Field" LabelAlign="Top" Height="150" runat="server">
            <RightButtons>
                <ext:Button Icon="ArrowUndo" runat="server" />
            </RightButtons>
        </ext:TextArea>
    </body>
    </html>
    But when it's defined that TextArea can grow, right button's height is static, set to the initial one. In my opinion it should grow as well as TextArea.
    Click image for larger version. 

Name:	RightButtons2.png 
Views:	33 
Size:	3.3 KB 
ID:	24169
    <!DOCTYPE html>
    <html>
    <head runat="server">
    </head>
    <body>
        <ext:ResourceManager Theme="Gray" ScriptMode="Debug" runat="server" />
        <ext:TextArea Margin="10" FieldLabel="Field" LabelAlign="Top" Grow="true" GrowMin="38" GrowMax="150" runat="server">
            <RightButtons>
                <ext:Button Icon="ArrowUndo" runat="server" />
            </RightButtons>
        </ext:TextArea>
    </body>
    </html>
    Last edited by Daniil; Sep 01, 2015 at 11:43 PM. Reason: [CLOSED]
  2. #2
    Hi @RCN,

    Personally, I like fixed height more as it happens with Grow="true".

    When a Button fits a TextArea's height as it does in the first sample, it looks a little ugly to me.

    So, I am not really sure what the best is and tend to leave the things as it is. At least, for now. If more requests from the community appear, we would re-consider it.

    In any way, you should be able to achieve the requirement listening to a TextArea's AutoSize event and sizing a Button as needed.
    http://docs.sencha.com/extjs/5.1/5.1...event-autosize

Similar Threads

  1. Replies: 4
    Last Post: Aug 25, 2015, 3:58 PM
  2. [CLOSED] TextArea height
    By RCN in forum 3.x Legacy Premium Help
    Replies: 7
    Last Post: Dec 29, 2014, 6:22 AM
  3. [CLOSED] textarea height in a grid roweditor
    By feanor91 in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 20, 2012, 1:17 PM
  4. [CLOSED] TextArea Height Issue
    By AABR in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 02, 2012, 6:00 PM
  5. Column Editor TextArea Height
    By sipo in forum Bugs
    Replies: 0
    Last Post: Apr 09, 2009, 4:23 AM

Posting Permissions