vaadin touchkit device rotation

Hello…
can any one tell me how to get rotation of touch device is portrait or landscape I tried use javascript but is not good for my situation I want to get info in server of the device (portrait or landscape)

Hi,

Use Window.getWidth/Height and Window.ResizeListener. You might also need to call window.setImmediate(true) to get notified immediately about the resizing.

cheers,
matti

Thank this solved my problem