Announcement

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

    MultiComboBoxItem layoutStyle horizontalReverse AutoFitButtons bug Internet Explorer

    There is a MultiComboBoxItem on the form with values "ONE", "TWO", "THREE". If you select all these values, the item shows "THR…" instead of "THREE". This problem occurs by redrawing the filled item with disabled parent layout too. It works fine on FF, GC browsers, but on IE we can reproduce it by showcase too: Select horizontalReverse, and then enter some values, e.g. "Glue UHU Clear…" or "Spray…" Could you please check it?
    http://www.smartclient.com/smartgwt/...bobox_category

    Code:
    MultiComboBoxItem item = new MultiComboBoxItem();
    item.setLayoutStyle(MultiComboBoxLayoutStyle.HORIZONTALREVERSE);
    item.setName("Name");
    item.setShowTitle(false);
    IE Version 11.0.9600.17498 on Win8.1
    SmartGWT Version: 4.1p BuildDate: Wed Sep 24 08:30:00 CEST 2014

    #2
    We're not seeing any such issue with the Showcase URL you provided and IE11. Try creating a standalone test case.

    Make sure you are also using the correct DOCTYPE (see FAQ) and can reproduce the issue without any added CSS or CSS changes (see FAQ).

    Comment


      #3
      Thanks for the info. I have reproduced it in showcase by IE selecting horizontalReverse. So, please try again to add the value Glue UHU Clear Gum 250ml only. It shows Glue UHU Clear Gum 250… with dots. The layout of a standalone test case is here, with exactly same view.
      Code:
      import com.smartgwt.client.types.MultiComboBoxLayoutStyle;
      import com.smartgwt.client.widgets.form.DynamicForm;
      import com.smartgwt.client.widgets.form.fields.MultiComboBoxItem;
      import com.smartgwt.client.widgets.layout.VLayout;
      
      public class MyPanel extends VLayout {
      	public MyPanel() {
      		DynamicForm form = new DynamicForm();
      		MultiComboBoxItem item = new MultiComboBoxItem("Name");
      		item.setShowTitle(false);
      		item.setLayoutStyle(MultiComboBoxLayoutStyle.HORIZONTALREVERSE);
      		item.setValueMap("Glue UHU Clear Gum 250ml");
      		form.setFields(item);
      		addMember(form);
      	}
      }
      We are using here HTML5 DOCTYPE: <!DOCTYPE html> and own CSS too. There is a WARN on Eclipse Developer Mode View by start: WARN:Log:Load skin: EnterpriseBlue. Nevertheless FF and GC work fine without dots. Why we can see dots in showcase too by IE? Could you please (re)check these little samples.

      Our default GWT version: 2.5.1
      Attached Files

      Comment


        #4
        Thanks, this was due a bug in IE size reporting that appears to be data-dependent. We've now worked around this - the fix is in tomorrow's nightly builds.

        Comment


          #5
          Side effect: Unfortunately we cannot retest and answer it right yet, because this new nightly build doesn’t work in our web application in IE11 and GWT2.5.1, due to the following Exception: Caused by: …Exception: (TypeError) @com.smartgwt.client.widgets.Canvas::show()([])
          Code:
          MyException: com.google.gwt.core.client.JavaScriptException: null
          	at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:232)
          	at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:259)
          	at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:412)
          	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
          	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
          	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
          	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
          	at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
          	at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:347)
          	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
          	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
          	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
          Caused by: MyException: (TypeError) @com.smartgwt.client.widgets.Canvas::show()([]):
           Das Objekt unterstützt die Eigenschaft oder Methode "$11o" nicht
          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:304)
          	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
          	at com.smartgwt.client.widgets.Canvas.show(Canvas.java)
          	... 21 more
          com.google.gwt.core.client.JavaScriptException: (TypeError) @com.google.gwt.core.client.impl.Impl
          ::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)
          ([JavaScript object(513), JavaScript object(512), JavaScript object(555)]):
           Das Objekt unterstützt die Eigenschaft oder Methode "$11o" nicht
          	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
          	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
          	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
          	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
          	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
          	at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
          	at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:347)
          	at sun.reflect.GeneratedMethodAccessor147.invoke(Unknown Source)
          	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          	at java.lang.reflect.Method.invoke(Method.java:597)
          	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
          	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
          	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
          	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
          	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
          	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
          	at java.lang.Thread.run(Thread.java:662)
          Regression tets: However this nightly build seems to work correct for browsers FF and GC as before.
          Then we tried to use GWT 2.6.0., resulting the same behavior, it does not work normally in IE11. We can only emulate IE8 "Edge" in IE11.

          Any suggestion about GWT, SmartGWT, IE, ... settings is welcome and thanks for the fix before.
          Could please help us, what configuration is required for IE11 to this nightly build?

          Tested:
          a) GWT Version: 2.5.1 SmartGWT Version: 4.1p BuildDate: Sun Feb 01 08:14:00 GMT+100 2015
          b) GWT Version: 2.6.0 SmartGWT Version: 4.1p BuildDate: Sun Feb 01 08:14:00 GMT+100 2015

          Comment


            #6
            We've just made a change to address this issue. The fix will be present in the next nightly build, dated Feb 4.

            Regards
            Isomorphic Software.

            Comment


              #7
              Second side effect: Disabling layout does not disable MultiComboBoxItem. There is an extended sample here. It contains a form with an additional TextItem. This is disabled but MultiComboBoxItem (?). Ending dots do not appear anyway, it is OK. Thanks for fixing it for IE11. Screenshot and comments in code show this simple issue. Reproduced in FF, GC, IE11. Could you please advise what is by disabling wrong?
              Code:
              import com.smartgwt.client.types.MultiComboBoxLayoutStyle;
              import com.smartgwt.client.widgets.form.DynamicForm;
              import com.smartgwt.client.widgets.form.fields.MultiComboBoxItem;
              import com.smartgwt.client.widgets.form.fields.TextItem;
              import com.smartgwt.client.widgets.layout.VLayout;
              
              public class MyPanel extends VLayout {
              	public MyPanel() {
              		setDisabled(true); // ERR: item is not disabled
              		String test = "Glue UHU Clear Gum 250ml";
              		DynamicForm form = new DynamicForm();
              		MultiComboBoxItem item = new MultiComboBoxItem("Name");
              		item.setShowTitle(false);
              		item.setLayoutStyle(MultiComboBoxLayoutStyle.HORIZONTALREVERSE);
              		item.setValueMap(test);
              		item.setValues(test);
              		// item.setDisabled(true); // OK: it works
              		TextItem text = new TextItem("Text", "Disabled layout");
              		text.setValue(test); // OK: disabled
              		form.setFields(item, text);
              		// form.setDisabled(true); // OK: it works
              		addMember(form);
              	}
              }
              GWT Version: 2.5.1 SmartGWT Version: 4.1p BuildDate: Wed Feb 04 23:03:00 GMT+100 2015
              Attached Files

              Comment


                #8
                Thanks for reporting this with a clear test case. This is now fixed for tomorrow's builds of 4.1 and up.

                Comment


                  #9
                  Retested (FF, GC, IE) OK, thank you for the fix.
                  GWT Version: 2.5.1 SmartGWT Version: 4.1p BuildDate: Sat Feb 07 09:53:00 GMT+100 2015

                  Comment

                  Working...
                  X