So, to summarize what I discovered is that, again, it is my fault and not GWT's (sorry GWT team). The resizeTo method relates to a single tab opened window and it refers to the whole window size and not only the content size. These two points failed me.
That's it, hope someone will benefit from this Ittai On Oct 12, 10:58 pm, Ittai <[email protected]> wrote: > Interesting, > I did compile again and now I get the alerts on my IE also, which does > explain one "voodoo" behaviour, but now I still don't understand why > the line: $wnd.resizeTo(width, height); doesn't get executed in the > function when the very similar line: window.resizeTo(width, height); > does work in actual native javascript. > Has anyone actually tried using this before in GWT? Because I saw a > lot of posts and article refer to it but I don't understand what's > different about this. > Maybe someone from the gwt team can shed some light? > > Ittai > > On Oct 12, 10:50 pm, Ittai <[email protected]> wrote: > > > > > Hi Chris, > > First of all thanks for your feedback. > > I think I did try that but I'm not sure as I've tried several things > > and it's been a few long hours but still what you're saying is new to > > me. If I target from an external browser while in hosted mode then > > that browser will see other compiled code then the hosted mode > > browser? I thought that there was no difference between the browsers > > in that since > > > Ittai > > > On Oct 12, 10:29 pm, Chris Ramsdale <[email protected]> wrote: > > > > You may want to trying recompiling your application with the GWT compiler. > > > Keep in mind that making changes and running in hosted mode won't > > > automatically update the "deployable" code (that you target from an > > > external, non "hosted mode" browser) which is generated when you do a full > > > GWT compile. > > > - Chris > > > > On Mon, Oct 12, 2009 at 3:22 PM, Ittai <[email protected]> wrote: > > > > > Hi, > > > > I have a web-app which requires resizing the browser window when > > > > certain actions occur. > > > > I have a JSNI function which goes like this: > > > > public static native void resizeWindowTo(final int height,final int > > > > width) /*-{ > > > > $wnd.alert(width); > > > > $wnd.alert(height); > > > > $wnd.resizeTo(width, height); > > > > }-*/; > > > > > Now, I know that the function is executed as the alert do pop up (only > > > > in hosted mode browser) but no resizing happens. > > > > From a lot of reading I understand that the hosted mode browser does > > > > not support window.resizeTo but what did surprise me was when I > > > > started my app in hosted mode and then entered the page from my IE > > > > (like I do many times) no resizing happened and no alerts splashed on > > > > the screen. > > > > I tested my IE (v.8) with a simple html file which had a JS function > > > > utilizing the resizeTo function and of course it worked perfectly > > > > fine. > > > > So now I'm not sure what can be done? On the one hand I get indication > > > > from the hosted mode browser that the JSNI function is being called > > > > but on the other hand the IE browser (which is the one I need to have > > > > working) does not give any signs. > > > > > Does anyone have a clue? Please? > > > > Ittai --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
