Announcement

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

    TextItem.showIcon/TextItem.hideIcon throws exception in IE9

    Hi,

    please run below modified example, click “Hide Icons" and then “Show Icons”.
    Modified PickerControlsSample from showcase:
    Code:
    public Canvas getViewPanel() {
     
            final DynamicForm form = new DynamicForm();
            form.setMargin(10);
            form.setAutoFocus(true);
            form.setWidth(400);
            form.setTitleWidth(100);
     
            PickerIcon clearPicker = new PickerIcon(PickerIcon.CLEAR, new FormItemClickHandler() {
                public void onFormItemClick(FormItemIconClickEvent event) {
                    SC.say("Clear Picker clicked");
                }
            });
            clearPicker.setName("icon1");
     
            PickerIcon searchPicker = new PickerIcon(PickerIcon.SEARCH, new FormItemClickHandler() {
                public void onFormItemClick(FormItemIconClickEvent event) {
                    SC.say("Search Picker clicked");
                }
            });
            searchPicker.setName("icon2");
     
            final TextItem pickerControls = new TextItem("pickerControls", "Picker Controls");
            pickerControls.setIcons(clearPicker, searchPicker);
          
            ButtonItem showIconsButton = new ButtonItem();
            showIconsButton.setTitle("Show Icons");
            showIconsButton.addClickHandler(new ClickHandler() {
                        @Override
                        public void onClick(ClickEvent event) {
                            pickerControls.showIcon("icon1");
                            pickerControls.showIcon("icon2");                       
                        }
            });
           
            ButtonItem hideIconsButton = new ButtonItem();
            hideIconsButton.setTitle("Hide Icons");
            hideIconsButton.addClickHandler(new ClickHandler() {
                        @Override
                        public void onClick(ClickEvent event) {
                            pickerControls.hideIcon("icon1");
                            pickerControls.hideIcon("icon2");                       
                        }
            });
     
            form.setFields(pickerControls, hideIconsButton, showIconsButton);
     
            return form;
        }
    Exception with - IE9
    No exception with - FF 21.0

    Tested with http://smartclient.com/builds/SmartGWT/3.1p/LGPL/2013-05-21

    Regards,
    Fero

    #2
    We will take a look at this issue. However one quick sanity check: Do you have a doctype specified in your bootstrap file? If not, can you specify the HTML5 doctype and see if the issue is resolved

    Thanks
    Isomorphic Software

    Comment


      #3
      Originally posted by Isomorphic View Post
      We will take a look at this issue. However one quick sanity check: Do you have a doctype specified in your bootstrap file? If not, can you specify the HTML5 doctype and see if the issue is resolved

      Thanks
      Isomorphic Software
      We did following test:
      We put "<!DOCTYPE html>" into index.html of showcase.
      1. Click "Hide Icons" --> OK
      2. Click "Show Icons" --> OK
      3. Click "Hide Icons" --> ERROR (Exception)

      Comment


        #4
        Thanks for the report - this has been fixed in 3.1 and 4.0 - please retest with a nightly build dated May 15 or later

        Comment


          #5
          This issue was fixed. Testes with build from 2013-05-26. Thank you !

          Comment

          Working...
          X