diff options
author | Jinhyuk Jun <jinhyuk.jun@samsung.com> | 2013-04-22 17:03:49 +0900 |
---|---|---|
committer | Youmin Ha <youmin.ha@samsung.com> | 2013-04-26 14:43:29 +0900 |
commit | 1cb26280eb8313f90778566f1a14fd328aabadcd (patch) | |
tree | 1a103c69a5678252dfb8d5207f260704c17005a0 | |
parent | 10c64ddf6a457dd11e6ffc1578eec05c0b409a53 (diff) | |
download | web-ui-fw-1cb26280eb8313f90778566f1a14fd328aabadcd.tar.gz web-ui-fw-1cb26280eb8313f90778566f1a14fd328aabadcd.tar.bz2 web-ui-fw-1cb26280eb8313f90778566f1a14fd328aabadcd.zip |
TizenDemo : add initial orientation mode to popup demo
Change-Id: I322f2c37ce5dbe4345b70040ac5b1ecb118b14fd
-rw-r--r-- | demos/tizen-winsets/widgets/popupwindow/popupwindow.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/demos/tizen-winsets/widgets/popupwindow/popupwindow.js b/demos/tizen-winsets/widgets/popupwindow/popupwindow.js index 16f93dd1..f62f2722 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 ) { |