Skip to main content
Known Participant
April 18, 2012
Question

? Rotate content (pdf) in stagewebview

  • April 18, 2012
  • 1 reply
  • 978 views

I have an application that is set to portrait. In the application I am opening a stagewebview and displaying a pdf. This al works great. I can load and perform general scroll and zooming functionality. What I need now is to be able to rotate the pdf so that it can be viewed in landscape as well. I don't care if this rotation happens simply by turning the ipad or clicking a button. Can this be done? Can you rotate the content of stagewebview without rotating the entire application?

This topic has been closed for replies.

1 reply

Inspiring
April 18, 2012

you have to have a listener to be triggered when the iPad is rotated and reset the stageWebView rectangle values for landscape ie/ 1024 x 768

Known Participant
April 25, 2012

Sorry I kind of drop off the planet for a bit there. I am not sure if this answer the question or not. It seem like this would simply change the size of the webview box but wouldn't change its orientation. So how can I make the stagewebview know that x,y, 0,0 is now what use to be the top right corner.