Difference between revisions of "Talk:Patch PDF Viewer Change Orientation"
Jump to navigation
Jump to search
(Current made obsolete by 1.2. New trivial patch.) |
m |
||
Line 4: | Line 4: | ||
{| | {| | ||
|- | |- | ||
− | | align=right | 1.||cd /usr/palm/applications | + | | align=right | 1.||Run <tt>cd /usr/palm/applications</tt> |
|- | |- | ||
− | | align=right | 2.||tar tzf com.palm.app.pdfviewer.tar.gz | + | | align=right | 2.||Run <tt>tar tzf com.palm.app.pdfviewer.tar.gz</tt> |
|- | |- | ||
− | | align=right | 3.|| | + | | align=right | 3.||Edit <tt>com.palm.app.pdfviewer/app/controllers/document-assistant.js</tt> |
|- | |- | ||
− | | align=right | 4.||look for the <tt>orientationChanged:</tt> | + | | align=right, valign=top | 4.||look for the <tt>orientationChanged:</tt> (line 221 in 1.2.1) and remove the <tt>return;</tt> at the beginning of the method |
− | |||
− | |||
orientationChanged: function(orientation) { | orientationChanged: function(orientation) { | ||
return; // <--- remove that line | return; // <--- remove that line | ||
if (this.currentOrientation === orientation) | if (this.currentOrientation === orientation) | ||
+ | |- | ||
+ | | align=right | 5.||Save the changes | ||
|- | |- | ||
| align=right | 6.||[Re]start the pdfviewer and voila! | | align=right | 6.||[Re]start the pdfviewer and voila! | ||
|} | |} |
Revision as of 06:01, 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. | Run cd /usr/palm/applications |
2. | Run tar tzf com.palm.app.pdfviewer.tar.gz |
3. | Edit com.palm.app.pdfviewer/app/controllers/document-assistant.js |
4. | look for the orientationChanged: (line 221 in 1.2.1) and remove the return; at the beginning of the method
orientationChanged: function(orientation) { return; // <--- remove that line if (this.currentOrientation === orientation) |
5. | Save the changes |
6. | [Re]start the pdfviewer and voila! |