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?

forneo
  • 715
  • 2
  • 8
  • 13

2 Answers2

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.

Community
  • 1
  • 1
z00bs
  • 7,518
  • 4
  • 34
  • 53
0

Try this:

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

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

dac2009
  • 3,521
  • 1
  • 22
  • 22