GWT - Hosted mode fonts look larger than compiled versions

When I create an application on my laptop, it compiles and displays just fine. If I compile the page and put it on a server to host it, it still works fine on multiple computers.

However, if I transfer the code to my desktop and run it on my desktop, the size of all fonts is messed up. Everything is much more. As you can probably guess, this greatly reduces my layout.

On a desktop machine, I am using GWT browswer ...

Any ideas as to why the same code would display differently on two different machines?

If I compile the code on the desktop and put it on the server, it looks like the laptop version (small).

Essentially I have this:

Laptop
   Hosted: small
   Server: small

Desktop
   Hosted: large
   Server: small

      

I have tested this against IE, firefox and safari.

Why is the placement mode different?

Thank!

0


source to share


4 answers


Since you have different default font sizes and / or monitor settings on two machines?



AIUI Standard GWT styles simply set the font size to "small", which will refer to the default font size set in the browser. Either set fonts to pixel dimensions, or better, use a more fluid layout that can handle different font sizes.

+2


source


The GWT Debug browser uses its own browser on your computer (hence IE on Windows, Safari on Mac, Firefox on Linux).



This is not a GWT problem, but some fonts look different in different browsers (even in the same size and style). You need to find a font and size that looks good in all browsers you want to support, and then set that as the CSS style for your text.

+1


source


It has something to do with the browser you are using, the browser on your desktop may have a large font as a preference setting. Try to restore this browser to its default settings or try other browsers.

0


source


I am doing a project in GWT too and I got into it too and here is my trick ....

[pompous]

All that html, css, javascript ball wasn't just accidentally dropped ... mtha fcka was dropped from fckng space station. You would think that all the self-proclaimed brainiacs working on this stuff would now have a solution. There are a million frameworks out there that help avoid the big bounce combining, but the fact is that nightname spaghetti started a long time ago and is outside the purge and is called html / javascript.

No browser standards. Some sites only support IE and I get this block that says "Sorry you have to use IE" and then the neighbors should hear me curse, what should you do if you don't start Windows?
[/ Bombastic]

0


source







All Articles