Announcement

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

    FilterBuilder renders 2 char length value field for item width=*

    1. 5.0p SmartClient Version: v9.1p_2014-10-03/LGPL Development Only (built 2014-10-03)
    Tested against 4.1p, too.

    2. FF 24.5.0 on Gentoo Linux

    3.

    4.

    5.

    6. sample code
    Code:
    package pl.com.tech4.client;
    
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.user.client.DOM;
    import com.smartgwt.client.data.DataSource;
    import com.smartgwt.client.data.fields.DataSourceTextField;
    import com.smartgwt.client.util.SC;
    import com.smartgwt.client.widgets.form.DynamicForm;
    import com.smartgwt.client.widgets.form.FilterBuilder;
    import com.smartgwt.client.widgets.form.fields.FormItem;
    import com.smartgwt.client.widgets.layout.VLayout;
    
    public class MainEntryPoint implements EntryPoint {
       
        public void onModuleLoad() {
    
            DOM.getElementById("loadingPicture").removeFromParent();
            layout();
            SC.showConsole();
        }
       
        private void layout() {
    
            DataSource ds = new DataSource();
            DataSourceTextField descriptionField = new DataSourceTextField();
            descriptionField.setName("description");
            FormItem descriptionItemProperties = new FormItem("description");
            descriptionItemProperties.setWidth("*");
            descriptionField.setEditorProperties(descriptionItemProperties);
            ds.setFields(descriptionField);
    
            DynamicForm form = new DynamicForm();
            form.setWidth(500);
            form.setDataSource(ds);
           
            FilterBuilder filter = new FilterBuilder();
            filter.setWidth(500);
            filter.setDataSource(ds);
           
            VLayout layout = new VLayout();
            layout.addMember(form);
            layout.addMember(filter);
            layout.draw();
        }
       
    }
    There is a datasource text field "description". This field has editorProperties set to form item, which has width set to "*". This is commonly used to have description field use all available form space (as on attached picture).
    There is a problem with the FilterBuilder binded to the same datasource. In this case, description field is rendered with width which allows to show/edit only 2 characters at a time (as on attached picture).
    MichalG
    Attached Files
    Last edited by michalg; 3 Oct 2014, 07:08. Reason: typo

    #2
    Any comments on this issue?
    Even "won't fix" would at least clarify the situation.
    Thanks,
    MichalG

    Comment


      #3
      We see the issue and it's being worked on - we'll update here when we have the proper fix in place.

      Comment


        #4
        We've fixed this - please retest with a build dated October 11 or later.

        Comment


          #5
          Tested against:
          4.1p SmartClient Version: v9.1p_2014-10-13/LGPL Development Only (built 2014-10-13)
          5.0p SmartClient Version: v10.0p_2014-10-13/LGPL Development Only (built 2014-10-13)
          5.1d SmartClient Version: SNAPSHOT_v10.1d_2014-10-12/LGPL Development Only (built 2014-10-12)
          All seems to have this issue resolved.
          Thanks a lot!
          MichalG

          Comment

          Working...
          X