Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 288597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:49:54+00:00 2026-05-12T05:49:54+00:00

It is a little bit annoying to have the GWT hosted browser (on a

  • 0

It is a little bit annoying to have the GWT hosted browser (on a Mac) pop up at always the same screen location and same size (that is: to small and at the wrong place!). In particular if you have two 24″ monitors it couldn’t be less annoying to always move the browser window and to resize it on startup. I know I could leave it open and reload, but I’m used to the cmd+shift+F11 and then cmd-Q to quit cycle as I do in other programs. Another reason is that in hosted mode GWT leaks memory and after a couple (about 20) reloads I have to quit anyway.

Does anybody know a way to tell the hosted mode app the initial size of the browser frame and possibly it’s location? If not I will eventually file a feature request at GWT.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:49:55+00:00Added an answer on May 12, 2026 at 5:49 am

    One thing you could try is to have a separate module class for hosted mode testing that is a subclass of your actual module. In the hosted mode version of the module, you could have some JSNI that resizes the window:

    public class MyModule implements EntryPoint {
        //...
     }
    

    public class HostedModeMyModule extends MyModule {
        private native void resizeWindow() /*-{
            $wnd.resizeTo(800, 600);
        }-*/;
    
        public void onModuleLoad() {
            resizeWindow();
            super.onModuleLoad();
        }
     }
    

    You’ll have to have two gwt.xml file of course, one for testing and one for compilation.

    This isn’t the most elegant approach, but is all I can come up with.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There's a little bit uncommon situation in my app, that is, I have to
I'm a little bit unfriendly with Visitor pattern, but I have a task that
I have this annoying little bit of spacing I can't remove. Here's a fiddle.
I am little bit confuse that I am showing images through css it's working
I know a little bit about TextWatcher but that fires on every character you
I am little bit confused of that what happened because it's illogical for me.
i need a little bit of help with some jquery thing that i'm sure
Little bit of background, I'm more experienced with Java, and have some C/C++ experience.
A little bit about my current situation: I have a decent knowledge of OOP
My Question is little bit bigger so apology for that. Now my problem is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.