Announcement

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

    Tabbing into the Combobox control with hint, does nothing.

    Hi,

    We are using:
    a) SmartClient Version: v10.1p_2016-01-03/Pro Deployment (built 2016-01-03)

    b) Testing using IE 11.0.9600.17905

    Tabbing into the Combobox control with hint, does nothing but clear the hint, the user doesn't know that they are in the control ... as the cursor does not appear.

    Thanks,

    Code:
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.core.client.GWT;
    import com.smartgwt.client.core.KeyIdentifier;
    import com.smartgwt.client.util.Page;
    import com.smartgwt.client.util.PageKeyHandler;
    import com.smartgwt.client.util.SC;
    import com.smartgwt.client.widgets.form.DynamicForm;
    import com.smartgwt.client.widgets.form.fields.ComboBoxItem;
    import com.smartgwt.client.widgets.form.fields.FormItem;
    
    public class ComboboxEntryPoint implements EntryPoint{
    
        @Override
        public void onModuleLoad() {
            if (!GWT.isScript()) {
                KeyIdentifier debugKey = new KeyIdentifier();
                debugKey.setCtrlKey(true);
                debugKey.setKeyName("D");
                Page.registerKey(debugKey, new PageKeyHandler() {
              
              @Override
              public void execute(String keyName) {
                SC.showConsole();      
              }   
                });
            }
            
            DynamicForm dynamicForm = new DynamicForm();
            dynamicForm.setPadding(30);
            dynamicForm.setItems(getComboBoxItemWithoutHint(),
                    getComboBoxItemWithHint(),
                    getComboBoxItemWithHint2());
            dynamicForm.setWrapItemTitles(false);
            dynamicForm.show();
        }
    
        private FormItem getComboBoxItemWithoutHint(){
            ComboBoxItem comboBoxItemWithoutHint = new ComboBoxItem();
            comboBoxItemWithoutHint.setTitle("Without Hint");
            return comboBoxItemWithoutHint;
            
        }
    
        private FormItem getComboBoxItemWithHint(){
            ComboBoxItem comboBoxItemWithHint = new ComboBoxItem();
            comboBoxItemWithHint.setTitle("With Hint 1");
            comboBoxItemWithHint.setShowHintInField(true);
            comboBoxItemWithHint.setHint("MyHint");
            return comboBoxItemWithHint;
            
        }
        
        private FormItem getComboBoxItemWithHint2(){
            ComboBoxItem comboBoxItemWithHint2 = new ComboBoxItem();
            comboBoxItemWithHint2.setTitle("With Hint 2");
            comboBoxItemWithHint2.setShowHintInField(true);
            comboBoxItemWithHint2.setHint("MyHint");
            return comboBoxItemWithHint2;
            
        }
    }


    #2
    We're not seeing this problem, and since SmartGWT doesn't actually draw the blinking cursor and it should not even be possible for SmartGWT to suppress it, this suggests you've got something unusual going on with your browser or machine. The first things to test are:

    1. whether you see this using a stock skin with no other CSS in the page, and correct DOCTYPE settings (see FAQ). If so, tell us which skin.

    2. whether you see the same effect in Showcase examples involving ComboBoxItem and hints, for example, this one.

    3. whether you see this on any other machine

    Comment


      #3
      For :
      1. whether you see this using a stock skin with no other CSS in the page, and correct DOCTYPE settings (see FAQ). If so, tell us which skin.

      I have not used any other css. Doctype used is <!doctype html>

      For :
      2. whether you see the same effect in Showcase examples involving ComboBoxItem and hints, for example, this one.

      In the Showcase example link that you have given call following two methods getComboBoxItemWithHint() and getComboBoxItemWithHint2() (this is given in the original post) in suppliesForm , like following suppliesForm.setItems(suppliesItem, getComboBoxItemWithHint(),getComboBoxItemWithHint2());

      Now tab into the ComboBoxes , you will be able to discover the issue that in only one of the comboBox cursor is blinking and in the other comboboxes it isn't.

      For :
      3. whether you see this on any other machine

      I have tried on three different machines and the issue is getting reproduced.



      Comment


        #4
        Hi,

        Just to let you know that we only see this problem when we supply a hint. If we remove these 2 lines of code:

        comboBoxItemWithHint.setShowHintInField(true);
        comboBoxItemWithHint.setHint("MyHint");


        the problem disappears.

        Thanks

        Comment


          #5
          This issue is now resolved in the 5.1p and 6.0d branches. Please try the next nightly build (Jan 28 or above) to pick up the fix.

          Regards
          Isomorphic Software

          Comment

          Working...
          X