0

I need to set the the -moz-box-sizing property on a widget through my GWT code. I don't want to do this through the .css file but need to do it in my java code. I tried

widget.getElement().getStyle().setProperty("mozBoxSizing", "border-box")

, but that doesn't work. Does anyone know how to convert -moz-box-sizing to the property camelcase property for GWT?

Thanks!

2 Answers 2

1

It seems MozBoxSizing would be the correct camelCase.

Sign up to request clarification or add additional context in comments.

Comments

0

Did you try with that widget.getElement().setAttribute("style","mozBoxSizing:border-box"); ?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.