Difference between revisions of "Talk:Patch PDF Viewer Change Orientation"

From WebOS Internals
Jump to navigation Jump to search
(Current made obsolete by 1.2. New trivial patch.)
(No difference)

Revision as of 06:52, 5 October 2009

As of 1.2.1 this code is already included but disable by a nasty little "return" at the beginning of the orientationChanged method.

Here are the new procedure to enable pdfviewer's built-in change of orientation:

1. cd /usr/palm/applications
2. tar tzf com.palm.app.pdfviewer.tar.gz
3. vi com.palm.app.pdfviewer/app/controllers/document-assistant.js
4. look for the orientationChanged:
5. Remove the return; at the beginning of the method
   orientationChanged: function(orientation) {
      return;                // <--- remove that line
      if (this.currentOrientation === orientation)
6. [Re]start the pdfviewer and voila!