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
Song David is currently offline Song DavidFriend
Messages: 190
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: 1859
Registered: July 2009
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
Song David is currently offline Song DavidFriend
Messages: 190
Registered: April 2011
Senior Member
thanks Ivan
Previous Topic:Java Exception when using RAP Google Maps Widget
Next Topic:Is Copy operation supported in Drag And Drop ?
Goto Forum:
  


Current Time: Thu Nov 27 23:29:07 GMT 2014

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

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