Am I doing something wrong here by using the dialogProperties on the SC.warn call?
I am getting the following error in the developer console and the width attribute does not appear to be applied to the Warning dialog.
Thanks
Code:
Dialog dialogProperties = new Dialog();
dialogProperties.setWidth(500);
SC.warn(null, "msg", null, dialogProperties);Code:
14:21:22.949 [ERROR] [xxxxxx] 14:21:22.946:XRP9:WARN:drawing:isc_globalWarn_body:Attempt to draw child of an undrawn parent - ignoring
Canvas.readyToDraw()
Canvas.draw(_1=>undef)
Window.$7h()
Window.layoutChildren(_1=>"resized", _2=>478, _3=>0, _4=>undef)
Canvas.$t1(_1=>undef)
Canvas.resizeBy(_1=>478, _2=>null, _3=>undef, _4=>undef, _5=>undef, undef, undef, undef, undef, undef)
[a]MathFunction.invokeSuper(_1=>[Class Window], _2=>"resizeBy", _3=>478, _4=>null, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
Window.resizeBy(_1=>478, _2=>null, _3=>undef, _4=>undef, _5=>undef)
Canvas.resizeTo(_1=>900, _2=>undef, _3=>undef, _4=>undef, _5=>undef, undef, undef, undef, undef, undef)
** recursed on [a]MathFunction.invokeSuper
com.smartgwt.client.core.JsObject$SGWT_WARN: 14:21:22.946:XRP9:WARN:drawing:isc_globalWarn_body:Attempt to draw child of an undrawn parent - ignoring
Canvas.readyToDraw()
Canvas.draw(_1=>undef)
Window.$7h()
Window.layoutChildren(_1=>"resized", _2=>478, _3=>0, _4=>undef)
Canvas.$t1(_1=>undef)
Canvas.resizeBy(_1=>478, _2=>null, _3=>undef, _4=>undef, _5=>undef, undef, undef, undef, undef, undef)
[a]MathFunction.invokeSuper(_1=>[Class Window], _2=>"resizeBy", _3=>478, _4=>null, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef, _11=>undef, _12=>undef, _13=>undef)
Window.resizeBy(_1=>478, _2=>null, _3=>undef, _4=>undef, _5=>undef)
Canvas.resizeTo(_1=>900, _2=>undef, _3=>undef, _4=>undef, _5=>undef, undef, undef, undef, undef, undef)
** recursed on [a]MathFunction.invokeSuper
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
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.invokeNativeVoid(ModuleSpace.java:304)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
at com.smartgwt.client.util.SC.warn(SC.java)
at com.xxxxxx.client.util.ClientUtils$3.execute(ClientUtils.java:385)
at com.xxxxxx.client.util.ClientUtils$1.execute(ClientUtils.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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 sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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:744)