plugins/org.symbian.tools.tmw.previewer/preview/script/lib/widget.js
changeset 491 27c0e5ff3255
parent 470 d4809db37847
equal deleted inserted replaced
490:17d65127bce4 491:27c0e5ff3255
   175 	 * @return {Void}
   175 	 * @return {Void}
   176 	 */
   176 	 */
   177 	widget.setDisplayLandscape = function(){
   177 	widget.setDisplayLandscape = function(){
   178 		try {
   178 		try {
   179 			if (this.isrotationsupported && _BRIDGE_REF.nokia.emulator.orientationSupports()) {
   179 			if (this.isrotationsupported && _BRIDGE_REF.nokia.emulator.orientationSupports()) {
   180 				_BRIDGE_REF.nokia.emulator.setMode('landscape');
   180 				_BRIDGE_REF.nokia.emulator.setMode('landscape', true);
   181 			}
   181 			}
   182 		} 
   182 		} 
   183 		catch (e) {
   183 		catch (e) {
   184 		}
   184 		}
   185 	};
   185 	};
   196 	 * @return {Void}
   196 	 * @return {Void}
   197 	 */
   197 	 */
   198 	widget.setDisplayPortrait = function(){
   198 	widget.setDisplayPortrait = function(){
   199 		try {
   199 		try {
   200 			if (this.isrotationsupported && _BRIDGE_REF.nokia.emulator.orientationSupports()) {
   200 			if (this.isrotationsupported && _BRIDGE_REF.nokia.emulator.orientationSupports()) {
   201 				_BRIDGE_REF.nokia.emulator.setMode('portrait');
   201 				_BRIDGE_REF.nokia.emulator.setMode('portrait', true);
   202 			}
   202 			}
   203 		} 
   203 		} 
   204 		catch (e) {
   204 		catch (e) {
   205 		}
   205 		}
   206 	};
   206 	};