<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=James</id>
	<title>WebOS Internals - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=James"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/wiki/Special:Contributions/James"/>
	<updated>2026-04-07T21:50:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Patch_Email_Enable_Landscape_Viewing&amp;diff=2213</id>
		<title>Patch Email Enable Landscape Viewing</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Patch_Email_Enable_Landscape_Viewing&amp;diff=2213"/>
		<updated>2009-07-25T04:29:46Z</updated>

		<summary type="html">&lt;p&gt;James: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Preamble==&lt;br /&gt;
&lt;br /&gt;
You will need write permissions to the file system on your Pre to apply this patch.&lt;br /&gt;
&lt;br /&gt;
To get write persmissions execute:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;rootfs_open -w&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After you've made the changes below, remount the file system as read-only:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;mount -o remount,ro /&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Procedure==&lt;br /&gt;
&lt;br /&gt;
Enabling rotation in email is trivial. Whenever you rotate the device, the system calls the orientationChanged function of the app. There's already one defined in email, but for some reason it does nothing. You can enable rotation by applying the following patches.&lt;br /&gt;
&lt;br /&gt;
NOTE: The root of the patches is /usr/palm/applications/com.palm.app.email/&lt;br /&gt;
&lt;br /&gt;
=== app/controllers/list-assistant.js===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
--- list-assistant.js_2009-06-27	Sat Jun 27 19:19:19 2009&lt;br /&gt;
+++ list-assistant.js	Sat Jun 27 20:03:19 2009&lt;br /&gt;
@@ -27,6 +27,9 @@&lt;br /&gt;
 				{label:$L('Update'), icon:'sync', command:'sync'}&lt;br /&gt;
 			]};&lt;br /&gt;
 	this.controller.setupWidget(Mojo.Menu.commandMenu, undefined, this.cmdMenuModel);&lt;br /&gt;
+	&lt;br /&gt;
+	// enable free orientation&lt;br /&gt;
+	this.controller.window.PalmSystem.setWindowOrientation(&amp;quot;free&amp;quot;);&lt;br /&gt;
   },&lt;br /&gt;
 &lt;br /&gt;
   // NOTE: this is called by app_scene's _setup function&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== app/controllers/compose-assistant.js===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
--- compose-assistant.js_2009-06-27	Sat Jun 27 19:21:43 2009&lt;br /&gt;
+++ compose-assistant.js	Sat Jun 27 20:03:45 2009&lt;br /&gt;
@@ -178,6 +178,9 @@&lt;br /&gt;
 &lt;br /&gt;
 		// Delayed a little, since we want the header part of render as quickly as possible&lt;br /&gt;
 		ComposeAssistant.onLoad.defer(this.controller, this.email);&lt;br /&gt;
+		&lt;br /&gt;
+		// enable free orientation&lt;br /&gt;
+		this.controller.window.PalmSystem.setWindowOrientation(&amp;quot;free&amp;quot;);&lt;br /&gt;
 	},&lt;br /&gt;
 &lt;br /&gt;
 	cleanup: function() {&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== app/controllers/accounts-assistant.js===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
--- accounts-assistant.js_2009-06-27	Sat Jun 27 19:29:47 2009&lt;br /&gt;
+++ accounts-assistant.js	Sat Jun 27 20:01:28 2009&lt;br /&gt;
@@ -51,6 +51,9 @@&lt;br /&gt;
 		EmailAppDepot.depot.isShowFavorites(AccountsAssistant.kFavoriteFoldersAccountID, this.depotGetFavExpanded.bind(this));&lt;br /&gt;
 &lt;br /&gt;
 		this.controller.listen(this.controller.sceneElement, Mojo.Event.keypress, this.keypressHandler.bind(this));&lt;br /&gt;
+		&lt;br /&gt;
+		// enable free orientation                                                 &lt;br /&gt;
+                this.controller.window.PalmSystem.setWindowOrientation(&amp;quot;free&amp;quot;);&lt;br /&gt;
 	},&lt;br /&gt;
 &lt;br /&gt;
 	cleanup: function() {&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes==&lt;br /&gt;
&lt;br /&gt;
Credit goes to jblebrun for the original hack.&lt;br /&gt;
&lt;br /&gt;
Seems that the menu disappears in landscape mode and that the orientation mode carries over from one part of the app to the other as you move to a message or back to the message list or account list. This is especially weird in the compose screen since the menu has some needed functionality in it&lt;br /&gt;
~ FXDemolisher&lt;br /&gt;
&lt;br /&gt;
Curious item found in accounts-assitant.js. There seems to be an orientationString variable in the controller that is linked to some kind of hack if you type a specific string while having the account(folder) list open. Will investigate further. &lt;br /&gt;
&lt;br /&gt;
UPDATE: Seems that typing &amp;quot;RocknRollHax&amp;quot; (see ./app/controllers/accounts-assistant.js)  in the accounts list window will cause the email app to go into 'free' orientation mode. Looks like its an easier way to perform orientation changes instead of explicitly calling setWindowOrientation whenever the orientation changes.&lt;br /&gt;
&lt;br /&gt;
Alternate to RocknRollHax:  In accounts-assistant.js, change key word in line 106 to 'wide' or whatever you want.  Change string length in line 104 to num characters of your new key word. - xorg&lt;br /&gt;
&lt;br /&gt;
- FXDemolisher&lt;br /&gt;
&lt;br /&gt;
7/24/2009 With the 1.1 update there is no need to edit the compose-assistant.js file referenced in the original mod.&lt;br /&gt;
&lt;br /&gt;
-Mamouton&lt;br /&gt;
&lt;br /&gt;
7/24/2009 With the 1.1 update there is no need to edit '''ANY''' pages.&lt;br /&gt;
&lt;br /&gt;
-NetWhiz&lt;br /&gt;
&lt;br /&gt;
7/25/2009 No need to edit the RocknRollHax section of the script, just modify the 3 javascript files as the procedure explains and you can view e-mails in landscape mode without typing a code.&lt;br /&gt;
&lt;br /&gt;
- James&lt;/div&gt;</summary>
		<author><name>James</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Patch_Email_Enable_Landscape_Viewing&amp;diff=2211</id>
		<title>Patch Email Enable Landscape Viewing</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Patch_Email_Enable_Landscape_Viewing&amp;diff=2211"/>
		<updated>2009-07-25T04:27:44Z</updated>

		<summary type="html">&lt;p&gt;James: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Preamble==&lt;br /&gt;
&lt;br /&gt;
You will need write permissions to the file system on your Pre to apply this patch.&lt;br /&gt;
&lt;br /&gt;
To get write persmissions execute:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;rootfs_open -w&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After you've made the changes below, remount the file system as read-only:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;mount -o remount,ro /&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Procedure==&lt;br /&gt;
&lt;br /&gt;
Enabling rotation in email is trivial. Whenever you rotate the device, the system calls the orientationChanged function of the app. There's already one defined in email, but for some reason it does nothing. You can enable rotation by applying the following patches.&lt;br /&gt;
&lt;br /&gt;
NOTE: The root of the patches is /usr/palm/applications/com.palm.app.email/&lt;br /&gt;
&lt;br /&gt;
=== app/controllers/list-assistant.js===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
--- list-assistant.js_2009-06-27	Sat Jun 27 19:19:19 2009&lt;br /&gt;
+++ list-assistant.js	Sat Jun 27 20:03:19 2009&lt;br /&gt;
@@ -27,6 +27,9 @@&lt;br /&gt;
 				{label:$L('Update'), icon:'sync', command:'sync'}&lt;br /&gt;
 			]};&lt;br /&gt;
 	this.controller.setupWidget(Mojo.Menu.commandMenu, undefined, this.cmdMenuModel);&lt;br /&gt;
+	&lt;br /&gt;
+	// enable free orientation&lt;br /&gt;
+	this.controller.window.PalmSystem.setWindowOrientation(&amp;quot;free&amp;quot;);&lt;br /&gt;
   },&lt;br /&gt;
 &lt;br /&gt;
   // NOTE: this is called by app_scene's _setup function&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== app/controllers/compose-assistant.js===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
--- compose-assistant.js_2009-06-27	Sat Jun 27 19:21:43 2009&lt;br /&gt;
+++ compose-assistant.js	Sat Jun 27 20:03:45 2009&lt;br /&gt;
@@ -178,6 +178,9 @@&lt;br /&gt;
 &lt;br /&gt;
 		// Delayed a little, since we want the header part of render as quickly as possible&lt;br /&gt;
 		ComposeAssistant.onLoad.defer(this.controller, this.email);&lt;br /&gt;
+		&lt;br /&gt;
+		// enable free orientation&lt;br /&gt;
+		this.controller.window.PalmSystem.setWindowOrientation(&amp;quot;free&amp;quot;);&lt;br /&gt;
 	},&lt;br /&gt;
 &lt;br /&gt;
 	cleanup: function() {&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== app/controllers/accounts-assistant.js===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
--- accounts-assistant.js_2009-06-27	Sat Jun 27 19:29:47 2009&lt;br /&gt;
+++ accounts-assistant.js	Sat Jun 27 20:01:28 2009&lt;br /&gt;
@@ -51,6 +51,9 @@&lt;br /&gt;
 		EmailAppDepot.depot.isShowFavorites(AccountsAssistant.kFavoriteFoldersAccountID, this.depotGetFavExpanded.bind(this));&lt;br /&gt;
 &lt;br /&gt;
 		this.controller.listen(this.controller.sceneElement, Mojo.Event.keypress, this.keypressHandler.bind(this));&lt;br /&gt;
+		&lt;br /&gt;
+		// enable free orientation                                                 &lt;br /&gt;
+                this.controller.window.PalmSystem.setWindowOrientation(&amp;quot;free&amp;quot;);&lt;br /&gt;
 	},&lt;br /&gt;
 &lt;br /&gt;
 	cleanup: function() {&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes==&lt;br /&gt;
&lt;br /&gt;
Credit goes to jblebrun for the original hack.&lt;br /&gt;
&lt;br /&gt;
Seems that the menu disappears in landscape mode and that the orientation mode carries over from one part of the app to the other as you move to a message or back to the message list or account list. This is especially weird in the compose screen since the menu has some needed functionality in it&lt;br /&gt;
~ FXDemolisher&lt;br /&gt;
&lt;br /&gt;
Curious item found in accounts-assitant.js. There seems to be an orientationString variable in the controller that is linked to some kind of hack if you type a specific string while having the account(folder) list open. Will investigate further. &lt;br /&gt;
&lt;br /&gt;
UPDATE: Seems that typing &amp;quot;RocknRollHax&amp;quot; (see ./app/controllers/accounts-assistant.js)  in the accounts list window will cause the email app to go into 'free' orientation mode. Looks like its an easier way to perform orientation changes instead of explicitly calling setWindowOrientation whenever the orientation changes.&lt;br /&gt;
&lt;br /&gt;
Alternate to RocknRollHax:  In accounts-assistant.js, change key word in line 106 to 'wide' or whatever you want.  Change string length in line 104 to num characters of your new key word. - xorg&lt;br /&gt;
&lt;br /&gt;
- FXDemolisher&lt;br /&gt;
&lt;br /&gt;
7/24/2009 With the 1.1 update there is no need to edit the compose-assistant.js file referenced in the original mod.&lt;br /&gt;
&lt;br /&gt;
-Mamouton&lt;br /&gt;
&lt;br /&gt;
7/24/2009 With the 1.1 update there is no need to edit '''ANY''' pages.&lt;br /&gt;
&lt;br /&gt;
-NetWhiz&lt;br /&gt;
&lt;br /&gt;
7/25/2009 No need to edit the RocknRollHax section of the script, just modify the 3 javascript files as the wiki explains and you can view e-mails in landscape mode without typing a code.&lt;br /&gt;
&lt;br /&gt;
- James&lt;/div&gt;</summary>
		<author><name>James</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Patch_Email_Enable_Landscape_Viewing&amp;diff=2209</id>
		<title>Patch Email Enable Landscape Viewing</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Patch_Email_Enable_Landscape_Viewing&amp;diff=2209"/>
		<updated>2009-07-25T04:27:29Z</updated>

		<summary type="html">&lt;p&gt;James: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Preamble==&lt;br /&gt;
&lt;br /&gt;
You will need write permissions to the file system on your Pre to apply this patch.&lt;br /&gt;
&lt;br /&gt;
To get write persmissions execute:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;rootfs_open -w&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After you've made the changes below, remount the file system as read-only:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;mount -o remount,ro /&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Procedure==&lt;br /&gt;
&lt;br /&gt;
Enabling rotation in email is trivial. Whenever you rotate the device, the system calls the orientationChanged function of the app. There's already one defined in email, but for some reason it does nothing. You can enable rotation by applying the following patches.&lt;br /&gt;
&lt;br /&gt;
NOTE: The root of the patches is /usr/palm/applications/com.palm.app.email/&lt;br /&gt;
&lt;br /&gt;
=== app/controllers/list-assistant.js===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
--- list-assistant.js_2009-06-27	Sat Jun 27 19:19:19 2009&lt;br /&gt;
+++ list-assistant.js	Sat Jun 27 20:03:19 2009&lt;br /&gt;
@@ -27,6 +27,9 @@&lt;br /&gt;
 				{label:$L('Update'), icon:'sync', command:'sync'}&lt;br /&gt;
 			]};&lt;br /&gt;
 	this.controller.setupWidget(Mojo.Menu.commandMenu, undefined, this.cmdMenuModel);&lt;br /&gt;
+	&lt;br /&gt;
+	// enable free orientation&lt;br /&gt;
+	this.controller.window.PalmSystem.setWindowOrientation(&amp;quot;free&amp;quot;);&lt;br /&gt;
   },&lt;br /&gt;
 &lt;br /&gt;
   // NOTE: this is called by app_scene's _setup function&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== app/controllers/compose-assistant.js===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
--- compose-assistant.js_2009-06-27	Sat Jun 27 19:21:43 2009&lt;br /&gt;
+++ compose-assistant.js	Sat Jun 27 20:03:45 2009&lt;br /&gt;
@@ -178,6 +178,9 @@&lt;br /&gt;
 &lt;br /&gt;
 		// Delayed a little, since we want the header part of render as quickly as possible&lt;br /&gt;
 		ComposeAssistant.onLoad.defer(this.controller, this.email);&lt;br /&gt;
+		&lt;br /&gt;
+		// enable free orientation&lt;br /&gt;
+		this.controller.window.PalmSystem.setWindowOrientation(&amp;quot;free&amp;quot;);&lt;br /&gt;
 	},&lt;br /&gt;
 &lt;br /&gt;
 	cleanup: function() {&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== app/controllers/accounts-assistant.js===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
--- accounts-assistant.js_2009-06-27	Sat Jun 27 19:29:47 2009&lt;br /&gt;
+++ accounts-assistant.js	Sat Jun 27 20:01:28 2009&lt;br /&gt;
@@ -51,6 +51,9 @@&lt;br /&gt;
 		EmailAppDepot.depot.isShowFavorites(AccountsAssistant.kFavoriteFoldersAccountID, this.depotGetFavExpanded.bind(this));&lt;br /&gt;
 &lt;br /&gt;
 		this.controller.listen(this.controller.sceneElement, Mojo.Event.keypress, this.keypressHandler.bind(this));&lt;br /&gt;
+		&lt;br /&gt;
+		// enable free orientation                                                 &lt;br /&gt;
+                this.controller.window.PalmSystem.setWindowOrientation(&amp;quot;free&amp;quot;);&lt;br /&gt;
 	},&lt;br /&gt;
 &lt;br /&gt;
 	cleanup: function() {&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes==&lt;br /&gt;
&lt;br /&gt;
Credit goes to jblebrun for the original hack.&lt;br /&gt;
&lt;br /&gt;
Seems that the menu disappears in landscape mode and that the orientation mode carries over from one part of the app to the other as you move to a message or back to the message list or account list. This is especially weird in the compose screen since the menu has some needed functionality in it&lt;br /&gt;
~ FXDemolisher&lt;br /&gt;
&lt;br /&gt;
Curious item found in accounts-assitant.js. There seems to be an orientationString variable in the controller that is linked to some kind of hack if you type a specific string while having the account(folder) list open. Will investigate further. &lt;br /&gt;
&lt;br /&gt;
UPDATE: Seems that typing &amp;quot;RocknRollHax&amp;quot; (see ./app/controllers/accounts-assistant.js)  in the accounts list window will cause the email app to go into 'free' orientation mode. Looks like its an easier way to perform orientation changes instead of explicitly calling setWindowOrientation whenever the orientation changes.&lt;br /&gt;
&lt;br /&gt;
Alternate to RocknRollHax:  In accounts-assistant.js, change key word in line 106 to 'wide' or whatever you want.  Change string length in line 104 to num characters of your new key word. - xorg&lt;br /&gt;
&lt;br /&gt;
- FXDemolisher&lt;br /&gt;
&lt;br /&gt;
7/24/2009 With the 1.1 update there is no need to edit the compose-assistant.js file referenced in the original mod.&lt;br /&gt;
&lt;br /&gt;
-Mamouton&lt;br /&gt;
&lt;br /&gt;
7/24/2009 With the 1.1 update there is no need to edit '''ANY''' pages.&lt;br /&gt;
&lt;br /&gt;
-NetWhiz&lt;br /&gt;
&lt;br /&gt;
7/25/2009 No need to edit the RocknRollHax section of the script, just modify the 3 javascript files as the wiki explains and you can view e-mails in landscape mode without typing a code.&lt;/div&gt;</summary>
		<author><name>James</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Patch_Email_Enable_Landscape_Viewing&amp;diff=2207</id>
		<title>Patch Email Enable Landscape Viewing</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Patch_Email_Enable_Landscape_Viewing&amp;diff=2207"/>
		<updated>2009-07-25T04:24:18Z</updated>

		<summary type="html">&lt;p&gt;James: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Preamble==&lt;br /&gt;
&lt;br /&gt;
You will need write permissions to the file system on your Pre to apply this patch.&lt;br /&gt;
&lt;br /&gt;
To get write persmissions execute:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;rootfs_open -w&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After you've made the changes below, remount the file system as read-only:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;mount -o remount,ro /&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Procedure==&lt;br /&gt;
&lt;br /&gt;
Enabling rotation in email is trivial. Whenever you rotate the device, the system calls the orientationChanged function of the app. There's already one defined in email, but for some reason it does nothing. You can enable rotation by applying the following patches.&lt;br /&gt;
&lt;br /&gt;
NOTE: The root of the patches is /usr/palm/applications/com.palm.app.email/&lt;br /&gt;
&lt;br /&gt;
=== app/controllers/list-assistant.js===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
--- list-assistant.js_2009-06-27	Sat Jun 27 19:19:19 2009&lt;br /&gt;
+++ list-assistant.js	Sat Jun 27 20:03:19 2009&lt;br /&gt;
@@ -27,6 +27,9 @@&lt;br /&gt;
 				{label:$L('Update'), icon:'sync', command:'sync'}&lt;br /&gt;
 			]};&lt;br /&gt;
 	this.controller.setupWidget(Mojo.Menu.commandMenu, undefined, this.cmdMenuModel);&lt;br /&gt;
+	&lt;br /&gt;
+	// enable free orientation&lt;br /&gt;
+	this.controller.window.PalmSystem.setWindowOrientation(&amp;quot;free&amp;quot;);&lt;br /&gt;
   },&lt;br /&gt;
 &lt;br /&gt;
   // NOTE: this is called by app_scene's _setup function&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== app/controllers/compose-assistant.js===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
--- compose-assistant.js_2009-06-27	Sat Jun 27 19:21:43 2009&lt;br /&gt;
+++ compose-assistant.js	Sat Jun 27 20:03:45 2009&lt;br /&gt;
@@ -178,6 +178,9 @@&lt;br /&gt;
 &lt;br /&gt;
 		// Delayed a little, since we want the header part of render as quickly as possible&lt;br /&gt;
 		ComposeAssistant.onLoad.defer(this.controller, this.email);&lt;br /&gt;
+		&lt;br /&gt;
+		// enable free orientation&lt;br /&gt;
+		this.controller.window.PalmSystem.setWindowOrientation(&amp;quot;free&amp;quot;);&lt;br /&gt;
 	},&lt;br /&gt;
 &lt;br /&gt;
 	cleanup: function() {&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== app/controllers/accounts-assistant.js===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
--- accounts-assistant.js_2009-06-27	Sat Jun 27 19:29:47 2009&lt;br /&gt;
+++ accounts-assistant.js	Sat Jun 27 20:01:28 2009&lt;br /&gt;
@@ -51,6 +51,9 @@&lt;br /&gt;
 		EmailAppDepot.depot.isShowFavorites(AccountsAssistant.kFavoriteFoldersAccountID, this.depotGetFavExpanded.bind(this));&lt;br /&gt;
 &lt;br /&gt;
 		this.controller.listen(this.controller.sceneElement, Mojo.Event.keypress, this.keypressHandler.bind(this));&lt;br /&gt;
+		&lt;br /&gt;
+		// enable free orientation                                                 &lt;br /&gt;
+                this.controller.window.PalmSystem.setWindowOrientation(&amp;quot;free&amp;quot;);&lt;br /&gt;
 	},&lt;br /&gt;
 &lt;br /&gt;
 	cleanup: function() {&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes==&lt;br /&gt;
&lt;br /&gt;
Credit goes to jblebrun for the original hack.&lt;br /&gt;
&lt;br /&gt;
Seems that the menu disappears in landscape mode and that the orientation mode carries over from one part of the app to the other as you move to a message or back to the message list or account list. This is especially weird in the compose screen since the menu has some needed functionality in it&lt;br /&gt;
~ FXDemolisher&lt;br /&gt;
&lt;br /&gt;
Curious item found in accounts-assitant.js. There seems to be an orientationString variable in the controller that is linked to some kind of hack if you type a specific string while having the account(folder) list open. Will investigate further. &lt;br /&gt;
&lt;br /&gt;
UPDATE: Seems that typing &amp;quot;RocknRollHax&amp;quot; (see ./app/controllers/accounts-assistant.js)  in the accounts list window will cause the email app to go into 'free' orientation mode. Looks like its an easier way to perform orientation changes instead of explicitly calling setWindowOrientation whenever the orientation changes.&lt;br /&gt;
&lt;br /&gt;
Alternate to RocknRollHax:  In accounts-assistant.js, change key word in line 106 to 'wide' or whatever you want.  Change string length in line 104 to num characters of your new key word. - xorg&lt;br /&gt;
&lt;br /&gt;
- FXDemolisher&lt;br /&gt;
&lt;br /&gt;
7/24/2009 With the 1.1 update there is no need to edit the compose-assistant.js file referenced in the original mod.&lt;br /&gt;
&lt;br /&gt;
-Mamouton&lt;br /&gt;
&lt;br /&gt;
7/24/2009 With the 1.1 update there is no need to edit '''ANY''' pages.&lt;br /&gt;
&lt;br /&gt;
-NetWhiz&lt;/div&gt;</summary>
		<author><name>James</name></author>
	</entry>
</feed>