Tuesday, August 27, 2024

Re: Is it possible to use CSS Rem unit in GWT 2.0 layout system?

You should be able to set it directly, something like this:

myPanel.getElement().getStyle().setProperty("margin", "rem(14%, 3%)");

On Wednesday 28 August 2024 at 6:54:35 am UTC+10 Chak Lai wrote:
Greetings,

Is it possible to use CSS Rem unit in GWT 2.0 layout system?

I have a legacy GWT project that uses GWT 2.0 layout system. The project has been upgraded to gwt-2.11.0 successfully. However, I notice the current Enum Style.Unit in the com.google.gwt.dom.client package does not include REM unit for CSS Viewport. I have trouble extend the project to mobile device or small screen.


Thanks.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/b2208a57-c970-4d0a-a494-b93e8e940996n%40googlegroups.com.

No comments:

Post a Comment