2

I'm trying to rotate a Widget (a LayoutPanel in fact) in GWT. I think this is possible in e.g. jQuery, but can't seem to find out how to do it in (pure) GWT. Is it possible?

2 Answers 2

0

Rotating a <div> element is not that easy. See here and here for some input. The effects libraries for GWT I know of (some listed here) do not provide support for rotation.

0

Try this:

<yourwidget>.getElement().getStyle().setProperty("transform", "rotate(20deg)");

You can can do lots of transformations following the same pattern.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.