Popup: Apply popup background dim
authorhjnim.kim <hjnim.kim@samsung.com>
Thu, 7 Mar 2013 12:36:24 +0000 (21:36 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Fri, 22 Mar 2013 11:20:36 +0000 (20:20 +0900)
Apply popup background dim ( data-position-to="window" popup )

Change-Id: I220266d165d7b8b2089668ad95865fa639434656

libs/patch/0020-JQM-Apply-tizen-style-context-popup.patch
src/themes/tizen/common/jquery.mobile.tizen.popup.less

index 9388e28..9c453c1 100644 (file)
@@ -1,18 +1,17 @@
-From f19edbb67df9a307f9a8a6b3cc7e059794b98563 Mon Sep 17 00:00:00 2001
+From 2ac5d27aad168598a2504f0ee43952a7043916ec Mon Sep 17 00:00:00 2001
 From: "hjnim.kim" <hjnim.kim@samsung.com>
-Date: Thu, 17 Jan 2013 10:12:59 +0900
-Subject: [PATCH] JQM Apply tizen style context popup
+Date: Fri, 8 Mar 2013 11:24:06 +0900
+Subject: [PATCH] JQM Apply tizen style popup
 
-Apply tizen style context popup ( data-postion-to = "origin" or null )
+Apply tizen style popup ( data-position-to null or origin )
 
-Change-Id: I654ba0c51e74f144c5f38c292380daa60b7cb38f
-Signed-off-by: hyunjung kim <hjnim.kim@samsung.com>
+Change-Id: I53553b7fda18f64d7b696fdc8a4eb695046a8db0
 ---
- libs/js/jquery-mobile-1.2.0/js/widgets/popup.js |   96 ++++++++++++++++++++---
- 1 files changed, 86 insertions(+), 10 deletions(-)
+ libs/js/jquery-mobile-1.2.0/js/widgets/popup.js |   98 ++++++++++++++++++++---
+ 1 files changed, 88 insertions(+), 10 deletions(-)
 
 diff --git a/libs/js/jquery-mobile-1.2.0/js/widgets/popup.js b/libs/js/jquery-mobile-1.2.0/js/widgets/popup.js
-index c222f08..b46e737 100644
+index 8174055..aa71dbc 100644
 --- a/libs/js/jquery-mobile-1.2.0/js/widgets/popup.js
 +++ b/libs/js/jquery-mobile-1.2.0/js/widgets/popup.js
 @@ -58,7 +58,7 @@ define( [ "jquery",
@@ -133,7 +132,7 @@ index c222f08..b46e737 100644
                        if ( this.options.overlayTheme && androidBlacklist ) {
                                /* TODO:
                                The native browser on Android 4.0.X ("Ice Cream Sandwich") suffers from an issue where the popup overlay appears to be z-indexed
-@@ -694,15 +740,45 @@ define( [ "jquery",
+@@ -694,15 +740,47 @@ define( [ "jquery",
                // what should be in _open. Seems to be "visual" vs "history" for now
                open: function( options ) {
                        var self = this, opts = this.options, url, hashkey, activePage, currentIsDialog, hasHash, urlHistory;
@@ -169,6 +168,8 @@ index c222f08..b46e737 100644
 +                              }
 +                      } else {
 +                              $(self._ui.arrow).hide();
++                              // apply opacity back screen
++                              this._setOverlayTheme( "dim" );
 +                      }
 +                      if( !options.x
 +                              && self.positionTo === "origin" ) {
index a7d9562..8c9abf6 100644 (file)
        z-index: @z_base_popup;
 }
 
+.ui-overlay-dim {
+       opacity: 0.7;
+}
+
+
 .ui-popup-scroller-bg {
        width : 100%;
 }