Announcement

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

    TextItems (FormItems) not rendering when disabled in FF18

    I'm regression testing our app against the Jan 29th SmartGwtEE nightly against Firefox 18, and I'm seeing that TextItems (FormItems) that are disabled aren't drawing - they don't appear onscreen. Has anyone else seen that behavior?

    Thanks!

    #2
    We're not reproducing this issue. Test code:
    Code:
    import com.google.gwt.core.client.EntryPoint;
    import com.smartgwt.client.widgets.form.DynamicForm;
    import com.smartgwt.client.widgets.form.fields.TextItem;
    
    public class TextItemTest implements EntryPoint {
    
        @Override
        public void onModuleLoad() {
            DynamicForm testForm = new DynamicForm();
            testForm.setBackgroundColor("lightblue");
            
            TextItem testItem = new TextItem("foo");
            testItem.setDisabled(true);
            testItem.setDefaultValue("xxx");
            
            testForm.setItems(testItem);
            
            testForm.draw();
            
        }
        
    
    }
    This causes the text item to render as expected with the latest nightly build (Dated Jan 31 2013) on the 3.1p branch.

    If you can show us how to reproduce this problem we'll take a look

    Thanks and Regards
    Isomorphic Software

    Comment


      #3
      My code is using absolute positioning. The second TextItem in the form isn't rendering.

      Code:
      package com.smartgwt.sample.client;
      
      import com.google.gwt.core.client.EntryPoint;
      import com.smartgwt.client.types.FormLayoutType;
      import com.smartgwt.client.types.Overflow;
      import com.smartgwt.client.widgets.form.DynamicForm;
      import com.smartgwt.client.widgets.form.fields.TextItem;
      import com.smartgwt.client.widgets.layout.VLayout;
      
      public class DisabledTextItemIssue implements EntryPoint {
      
      	public void onModuleLoad() {
      
      		VLayout example = new VLayout();
      
      		example = new VLayout();
      		example.setOverflow(Overflow.VISIBLE);
      
      		DynamicForm form = new DynamicForm();
      		form.setItemLayout(FormLayoutType.ABSOLUTE);
      		form.setBrowserSpellCheck(false);
      		// Width and Height appear to be required for FF18
      		form.setWidth(600);
      		form.setHeight(600);
      		
      		TextItem e1 = new TextItem("e1", "Enabled");
      		e1.setWidth(70);
      		e1.setTop(78);
      		e1.setLeft(50);
      		e1.setValue("enabled");
      		
      		final TextItem d1 = new TextItem("d1", "Disabled");
      		d1.setTop(78);
      		d1.setWidth(170);
      		d1.setLeft(190);
      		d1.setValue("disabled");
      		d1.setDisabled(true);
      		
      		form.setFields(e1, d1);		
      
      		example.addMember(form);
      
      		example.draw();
      	}
      
      }
      If you comment out the line

      Code:
                      d1.setDisabled(true);
      It renders.
      Last edited by cjustice; 31 Jan 2013, 18:17. Reason: Setting form width & height

      Comment


        #4
        Thanks for the test case. This is now resolved.
        Please try the next nightly build dated Feb 2 or greater

        Regards
        Isomorphic Software

        Comment


          #5
          Thank you, I tested the fix using the Feb 5 nightly build, and the fix does work.

          Kind Regards,
          Chris

          Comment

          Working...
          X