<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/index.php?action=history&amp;feed=atom&amp;title=Patch_Youtube_Landscape_Orientation</id>
	<title>Patch Youtube Landscape Orientation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/index.php?action=history&amp;feed=atom&amp;title=Patch_Youtube_Landscape_Orientation"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Patch_Youtube_Landscape_Orientation&amp;action=history"/>
	<updated>2026-04-19T10:35:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Patch_Youtube_Landscape_Orientation&amp;diff=6574&amp;oldid=prev</id>
		<title>Hopspitfire at 10:06, 19 October 2009</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Patch_Youtube_Landscape_Orientation&amp;diff=6574&amp;oldid=prev"/>
		<updated>2009-10-19T10:06:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:06, 19 October 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{template:patch}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You will have to resize the background.png image found in /usr/palm/applications/com.palm.app.youtube/images/ to 480x480 so that it doesnt  cut off when switching orientation.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You will have to resize the background.png image found in /usr/palm/applications/com.palm.app.youtube/images/ to 480x480 so that it doesnt  cut off when switching orientation.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hopspitfire</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Patch_Youtube_Landscape_Orientation&amp;diff=6389&amp;oldid=prev</id>
		<title>Fritos1406: New page: You will have to resize the background.png image found in /usr/palm/applications/com.palm.app.youtube/images/ to 480x480 so that it doesnt  cut off when switching orientation.  or u can do...</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Patch_Youtube_Landscape_Orientation&amp;diff=6389&amp;oldid=prev"/>
		<updated>2009-10-09T12:18:45Z</updated>

		<summary type="html">&lt;p&gt;New page: You will have to resize the background.png image found in /usr/palm/applications/com.palm.app.youtube/images/ to 480x480 so that it doesnt  cut off when switching orientation.  or u can do...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;You will have to resize the background.png image found in /usr/palm/applications/com.palm.app.youtube/images/ to 480x480 so that it doesnt  cut off when switching orientation.&lt;br /&gt;
&lt;br /&gt;
or u can download this one which is already resized and use quick install to send the file to the directory  http://www.webos-internals.org/images/2/26/Background.png&lt;br /&gt;
----&lt;br /&gt;
'''PATCH CODE'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Index: /usr/palm/applications/com.palm.app.youtube/app/controllers/home-assistant.js&lt;br /&gt;
===================================================================&lt;br /&gt;
--- .orig/usr/palm/applications/com.palm.app.youtube/app/controllers/home-assistant.js&lt;br /&gt;
+++ /usr/palm/applications/com.palm.app.youtube/app/controllers/home-assistant.js&lt;br /&gt;
@@ -12,6 +12,9 @@ var HomeAssistant = Class.create({&lt;br /&gt;
 		// setup application menu&lt;br /&gt;
 		this.controller.setupWidget(Mojo.Menu.appMenu, {omitDefaultItems: true}, AppAssistant.appMenuModel);&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;
 		// setup bottom menus		&lt;br /&gt;
 		this.controller.setupWidget('videos-menu', undefined, this.videosMenuModel);				&lt;br /&gt;
 		this.controller.setupWidget(Mojo.Menu.commandMenu, {menuClass: &amp;quot;no-fade&amp;quot;}, this.cmdMenuModel);&lt;br /&gt;
@@ -52,6 +55,14 @@ var HomeAssistant = Class.create({&lt;br /&gt;
 			});&lt;br /&gt;
     },&lt;br /&gt;
 	&lt;br /&gt;
+	orientationChanged: function(orientation) {&lt;br /&gt;
+		if (orientation === &amp;quot;left&amp;quot; || orientation === &amp;quot;right&amp;quot;) {&lt;br /&gt;
+			this.controller.sceneElement.addClassName('landscape');&lt;br /&gt;
+		} else {&lt;br /&gt;
+			this.controller.sceneElement.removeClassName('landscape');&lt;br /&gt;
+		}&lt;br /&gt;
+	},&lt;br /&gt;
+	&lt;br /&gt;
 	activate: function() {&lt;br /&gt;
 		$('search_string').mojo.focus();&lt;br /&gt;
 		this._checkHistoryCount();&lt;br /&gt;
Index: /usr/palm/applications/com.palm.app.youtube/app/controllers/search-assistant.js&lt;br /&gt;
===================================================================&lt;br /&gt;
--- .orig/usr/palm/applications/com.palm.app.youtube/app/controllers/search-assistant.js&lt;br /&gt;
+++ /usr/palm/applications/com.palm.app.youtube/app/controllers/search-assistant.js&lt;br /&gt;
@@ -20,6 +20,9 @@ var SearchAssistant = Class.create({&lt;br /&gt;
 		// setup application menu&lt;br /&gt;
 		this.controller.setupWidget(Mojo.Menu.appMenu, {omitDefaultItems: true}, AppAssistant.appMenuModel);&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;
 		// setup search field&lt;br /&gt;
 		this.searchFieldModel.attributes = {&lt;br /&gt;
 			hintText: $L('Search All Videos...'),&lt;br /&gt;
@@ -66,6 +69,14 @@ var SearchAssistant = Class.create({&lt;br /&gt;
 			});		&lt;br /&gt;
     },&lt;br /&gt;
 	&lt;br /&gt;
+	orientationChanged: function(orientation) {&lt;br /&gt;
+		if (orientation === &amp;quot;left&amp;quot; || orientation === &amp;quot;right&amp;quot;) {&lt;br /&gt;
+			this.controller.sceneElement.addClassName('landscape');&lt;br /&gt;
+		} else {&lt;br /&gt;
+			this.controller.sceneElement.removeClassName('landscape');&lt;br /&gt;
+		}&lt;br /&gt;
+	},&lt;br /&gt;
+	&lt;br /&gt;
 	activate: function() {&lt;br /&gt;
 		// in case of cross app launch we want to focus the app only after &lt;br /&gt;
 		// search scene is ready to go. This is so that user won't see a&lt;br /&gt;
Index: /usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js&lt;br /&gt;
===================================================================&lt;br /&gt;
--- .orig/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js&lt;br /&gt;
+++ /usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js&lt;br /&gt;
@@ -11,6 +11,9 @@ var VideoAssistant = Class.create({&lt;br /&gt;
     setup: function() {&lt;br /&gt;
 		// setup application menu&lt;br /&gt;
 		this.controller.setupWidget(Mojo.Menu.appMenu, {omitDefaultItems: true}, AppAssistant.appMenuModel);&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;
 		// setup bottom menus&lt;br /&gt;
 		this.cmdMenuModel = {items: [{label: $L('More'), submenu:'more-menu'}, &lt;br /&gt;
@@ -29,7 +32,15 @@ var VideoAssistant = Class.create({&lt;br /&gt;
 				AppAssistant.common.playVideo(this.video);&lt;br /&gt;
 			}.bind(this));&lt;br /&gt;
     },&lt;br /&gt;
-	&lt;br /&gt;
+&lt;br /&gt;
+	orientationChanged: function(orientation) {&lt;br /&gt;
+		if (orientation === &amp;quot;left&amp;quot; || orientation === &amp;quot;right&amp;quot;) {&lt;br /&gt;
+			this.controller.sceneElement.addClassName('landscape');&lt;br /&gt;
+		} else {&lt;br /&gt;
+			this.controller.sceneElement.removeClassName('landscape');&lt;br /&gt;
+		}&lt;br /&gt;
+	},&lt;br /&gt;
+&lt;br /&gt;
 	activate: function() {&lt;br /&gt;
 		// in case of cross app launch we want to focus the app only after &lt;br /&gt;
 		// search scene is ready to go. This is so that user won't see a&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fritos1406</name></author>
	</entry>
</feed>