# HG changeset patch # User Eugene Ostroukhov # Date 1286831417 25200 # Node ID 27c0e5ff325503eae80fa9fee03acaa3c72c4616 # Parent 17d65127bce40fbfe44c6fcdcad2486d343a3dc9 Bug 3809 - Simulator does not properly simulate setDisplay* methods diff -r 17d65127bce4 -r 27c0e5ff3255 plugins/org.symbian.tools.tmw.previewer/preview/script/emulator.js --- a/plugins/org.symbian.tools.tmw.previewer/preview/script/emulator.js Mon Sep 27 11:43:44 2010 -0700 +++ b/plugins/org.symbian.tools.tmw.previewer/preview/script/emulator.js Mon Oct 11 14:10:17 2010 -0700 @@ -229,9 +229,9 @@ $("#DeviceDisplayLayout").css("-webkit-transform", val); }; -Emulator.prototype.setMode = function(mode) { +Emulator.prototype.setMode = function(mode, fixed) { NOKIA.mode = mode; - + NOKIA.emulator.modeForced = fixed ? true : false; // Note - fixed may be undefined // SAVE the device DATA NOKIA.helper.setPreference('__SYM_NOKIA_EMULATOR_DEVICE_MODE', NOKIA.mode); diff -r 17d65127bce4 -r 27c0e5ff3255 plugins/org.symbian.tools.tmw.previewer/preview/script/lib/widget.js --- a/plugins/org.symbian.tools.tmw.previewer/preview/script/lib/widget.js Mon Sep 27 11:43:44 2010 -0700 +++ b/plugins/org.symbian.tools.tmw.previewer/preview/script/lib/widget.js Mon Oct 11 14:10:17 2010 -0700 @@ -177,7 +177,7 @@ widget.setDisplayLandscape = function(){ try { if (this.isrotationsupported && _BRIDGE_REF.nokia.emulator.orientationSupports()) { - _BRIDGE_REF.nokia.emulator.setMode('landscape'); + _BRIDGE_REF.nokia.emulator.setMode('landscape', true); } } catch (e) { @@ -198,7 +198,7 @@ widget.setDisplayPortrait = function(){ try { if (this.isrotationsupported && _BRIDGE_REF.nokia.emulator.orientationSupports()) { - _BRIDGE_REF.nokia.emulator.setMode('portrait'); + _BRIDGE_REF.nokia.emulator.setMode('portrait', true); } } catch (e) {