Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    AutoFitTextAreaItem not auto-fitting as desired

    I am trying to use the AutoFitTextAreaItem and I want it to expand to auto-fit the current value, however, the field seems to be about 2 possibly 3 times the height of the current value, generating large amounts of white space in my form.
    Am I doing something wrong here (see sample code below)? I would like the form to open with all of the text visible in the AutoFitTextAreaItem, nothing more, and nothing less.

    Thanks

    1. SmartClient Version: v9.1p_2014-05-08/Pro Deployment (built 2014-05-08)

    2. FF ESR 24.5.0

    6.
    String autoFitTextAreaItemValue = "Large multi-line text......";
    DynamicForm dynamicForm = new DynamicForm();
    dynamicForm.setWidth100();
    AutoFitTextAreaItem autoFitTextAreaItem = new AutoFitTextAreaItem("autoFitTextAreaItem", "AutoFitTextAreaItem");
    autoFitTextAreaItem.setWidth("*");
    dynamicForm.setItems(autoFitTextAreaItem);
    dynamicForm.setValue("autoFitTextAreaItem", autoFitTextAreaItemValue);

    Window window = new Window();
    window.setTitle("AutoFitTextAreaItem");
    window.setWidth(1000);
    window.setHeight(400);
    window.addItem(dynamicForm);
    window.show();
    Last edited by stonebranch2; 9 May 2014, 13:07.

    #2
    We are reproducing the problem and have it assigned to a developer for investigation. We'll follow up when we have more information.

    Thanks
    Isomorphic Software

    Comment


      #3
      ...and we've made a change which we believe addresses this.
      Please try the next nightly build, dated May 10 or above in the 4.1p or 5.0d branches

      Regards
      Isomorphic Software

      Comment


        #4
        Thank you, will pick up the new build and try.

        Comment


          #5
          Verified as working in SmartClient Version: v9.1p_2014-05-11/Pro Deployment (built 2014-05-11).
          Thanks again.

          Comment

          Working...
          X