org.symbian.tools.wrttools.previewer/preview/script/nokia.js
changeset 338 41174f0a7f7c
parent 337 afe6a53c0ed4
child 364 84c00c972166
--- a/org.symbian.tools.wrttools.previewer/preview/script/nokia.js	Wed May 19 17:17:31 2010 -0700
+++ b/org.symbian.tools.wrttools.previewer/preview/script/nokia.js	Thu May 20 13:14:48 2010 -0700
@@ -556,7 +556,17 @@
 		render : function()
 		{
 			this.load();
-			
+			//	Selecting Resoltion
+			var resOptions = $("#resOptions")[0];
+			for(var i=0; i<NOKIA.resolution.length; i++)
+			{
+				if(NOKIA.resolution[i] == NOKIA.currentDevice)
+				{
+					resOptions.options[i].selected = true;
+					break;
+				}				
+			}
+
 			if(!NOKIA.emulator.orientationSupports())
 				NOKIA.mode = NOKIA.deviceList[NOKIA.currentDevice]['default'];
 			
@@ -569,8 +579,8 @@
 			this.setStyle();
 			var or = (NOKIA.mode == 'portrait') ? NOKIA.orientation : (NOKIA.orientation + 90);
 			var val = "rotate(" + or + "deg)";
-			$("#preview-ui-top").css("-moz-transform", val);
-			$("#preview-ui-top").css("-webkit-transform", val);
+			$("#DeviceDisplayLayout").css("-moz-transform", val);
+			$("#DeviceDisplayLayout").css("-webkit-transform", val);
 		},
 		
 		setMode : function(mode)
@@ -1141,7 +1151,7 @@
 					clearInterval(NOKIA.helper.intervalId);
 
 				NOKIA.helper.intervalId = setTimeout(function(){
-					NOKIA.menu.cancel()
+					NOKIA.menu.cancel();
 				}, 500);
 			});