Results 1 to 2 of 2

Thread: TextArea clear() incorrect display

  1. #1

    Default TextArea clear() incorrect display

    GXT 4.0.3
    What is the correct way to reset value in TextArea? For example, we have Form and Reset button that should erase all entered values. After clear() TextArea blank validation displays incorrectly in Chrome and IE Edge (tested only these browsers).

    Step 1. Create TextArea with allowBlank(false).
    Step 2. Enter anything in field.
    Step 3. Press Button with clear() function -> right border disappears and bottom border goes little down (like height becomes 1-2px larger).
    Step 4. Set cursor inside the field and remove cursor from field -> In IE there is a space between scroll and right border. In both no exclamation mark.

    After Step 4 entering/erasing text do not fix this incorrect display. reset(), setText(""/null), setValue(""/null) and combinations also not working.

    Textarea_invalid.jpg

    Code:
    TextArea description = new TextArea();
    description.setPixelSize(400, 200);
    description.setAllowBlank(false);
    
    VBoxLayoutContainer vlc = new VBoxLayoutContainer();
    vlc.add(new FieldLabel(description, "Description"));
    
    FramedPanel panel = new FramedPanel();
    panel.setHeading("Forms Example — Simple");
    panel.add(vlc, new MarginData(15, 15, 0, 15));
    TextButton reset = new TextButton("Reset");
    reset.addSelectHandler(selectEvent -> {
        description.clear();
    });
    panel.addButton(reset);

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,005

    Default

    Hi there- I apologize I do not know the answer to your questions. I have passed it along to the support team and asked that they reach out to you as soon as possible to provide some help. Your patience is greatly appreciated!

    Thanks,

    Michele

Similar Threads

  1. Form Field clear Icon is out of textarea!
    By shiplu in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 28 Dec 2012, 2:50 PM
  2. Scrollbar on Textarea, clear event in searchfield
    By str_str in forum Sencha Touch 1.x: Q&A
    Replies: 1
    Last Post: 5 Jan 2012, 8:41 AM
  3. Combo incorrect display in IE and chrome
    By nani1216 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 2 Nov 2010, 6:58 AM
  4. textarea onDestroy incorrect Ext.Element reference
    By mdissel in forum Ext 1.x: Bugs
    Replies: 2
    Last Post: 11 Jul 2007, 12:26 PM
  5. [1.1b1] TextArea width incorrect
    By JorisA in forum Ext 1.x: Bugs
    Replies: 4
    Last Post: 22 Jun 2007, 8:22 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •