From 3df08f06c7b1e6c8719b7b8b0321d727c44dd7e8 Mon Sep 17 00:00:00 2001 From: "hjnim.kim" Date: Thu, 7 Mar 2013 21:36:24 +0900 Subject: [PATCH] Popup: Apply popup background dim Apply popup background dim ( data-position-to="window" popup ) Change-Id: I220266d165d7b8b2089668ad95865fa639434656 --- .../0020-JQM-Apply-tizen-style-context-popup.patch | 21 +++++++++++---------- .../tizen/common/jquery.mobile.tizen.popup.less | 5 +++++ 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/libs/patch/0020-JQM-Apply-tizen-style-context-popup.patch b/libs/patch/0020-JQM-Apply-tizen-style-context-popup.patch index 9388e28..9c453c1 100644 --- a/libs/patch/0020-JQM-Apply-tizen-style-context-popup.patch +++ b/libs/patch/0020-JQM-Apply-tizen-style-context-popup.patch @@ -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" -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 +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" ) { diff --git a/src/themes/tizen/common/jquery.mobile.tizen.popup.less b/src/themes/tizen/common/jquery.mobile.tizen.popup.less index a7d9562..8c9abf6 100644 --- a/src/themes/tizen/common/jquery.mobile.tizen.popup.less +++ b/src/themes/tizen/common/jquery.mobile.tizen.popup.less @@ -15,6 +15,11 @@ z-index: @z_base_popup; } +.ui-overlay-dim { + opacity: 0.7; +} + + .ui-popup-scroller-bg { width : 100%; } -- 2.7.4