Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » style font-size does not work for Chrome!
style font-size does not work for Chrome! [message #1331020] Sun, 04 May 2014 00:02 Go to next message
David Song is currently offline David SongFriend
Messages: 205
Registered: April 2011
Senior Member
Hi,

Chrome browser automatically adjusts font sizes, if we want to turn off this feature, you can set the CSS, like this
-WebKit-text-size-adjust:none;

But how to do it in the RAP?

Best Regards
Re: style font-size does not work for Chrome! [message #1332288 is a reply to message #1331020] Sun, 04 May 2014 14:58 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2198
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
you could specify your CSS in your application configuration like this:
....
Map<String, String> properties = new HashMap<String, String>();
properties.put( WebClient.HEAD_HTML, "<style type=\"text/css\">...." );
application.addEntryPoint( "/entry", ControlsDemo.class, properties );
....
HTH,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: style font-size does not work for Chrome! [message #1339971 is a reply to message #1331020] Wed, 07 May 2014 22:54 Go to previous message
David Song is currently offline David SongFriend
Messages: 205
Registered: April 2011
Senior Member
thanks Ivan
Previous Topic:FF29 does not open RAP application
Next Topic:FileUpload , How to check size and format of a file before uploading?
Goto Forum:
  


Current Time: Thu May 25 20:23:36 GMT 2017

Powered by FUDForum. Page generated in 0.03966 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software