From: Jinhyuk Jun Date: Mon, 22 Apr 2013 08:03:49 +0000 (+0900) Subject: TizenDemo : add initial orientation mode to popup demo X-Git-Tag: 2.1b_release^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1cb26280eb8313f90778566f1a14fd328aabadcd;p=platform%2Fframework%2Fweb%2Fweb-ui-fw.git TizenDemo : add initial orientation mode to popup demo Change-Id: I322f2c37ce5dbe4345b70040ac5b1ecb118b14fd --- diff --git a/demos/tizen-winsets/widgets/popupwindow/popupwindow.js b/demos/tizen-winsets/widgets/popupwindow/popupwindow.js index 16f93dd..f62f272 100644 --- a/demos/tizen-winsets/widgets/popupwindow/popupwindow.js +++ b/demos/tizen-winsets/widgets/popupwindow/popupwindow.js @@ -4,6 +4,13 @@ $( document ).one( "pageinit", "#popupwindow-demo", function () { $("#textbox_popup").popup("close"); return false; }); + + if ( $.tizen.__tizen__.util.isMobileBrowser() ) { + var direction = window.screen.orientation; + if ( direction === "landscape-primary" || direction === "landscape-secondary" ) { + $( "#go_textbox_popup a" ).attr( "href", "#textbox_popup_landscape" ); + } + } }); function onSuccessPopupCallback ( ori ) {