From f653a2f4229d0bdf79dc2a2f3af7d23a82fdd58b Mon Sep 17 00:00:00 2001 From: "hjnim.kim" Date: Fri, 8 Feb 2013 13:57:52 +0900 Subject: [PATCH] ContextPopup: input type="button" popup open issue has been fixed input type="button" and div data-role="button" javascript open problem has been fixed and support data-rel="back" method DCM-542 Change-Id: I529495ebf9731877d6413ee494e7be78027e7192 --- demos/tizen-winsets/widgets/ctxpopup.html | 6 ++++++ libs/patch/0020-JQM-Apply-tizen-style-context-popup.patch | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/demos/tizen-winsets/widgets/ctxpopup.html b/demos/tizen-winsets/widgets/ctxpopup.html index 7d1873a..df9a00e 100644 --- a/demos/tizen-winsets/widgets/ctxpopup.html +++ b/demos/tizen-winsets/widgets/ctxpopup.html @@ -142,6 +142,12 @@ Code Sample

I am positioned over the origin.

+
+
+ +
+
+
Open Popup - div button
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 f8420c3..9388e28 100644 --- a/libs/patch/0020-JQM-Apply-tizen-style-context-popup.patch +++ b/libs/patch/0020-JQM-Apply-tizen-style-context-popup.patch @@ -99,7 +99,7 @@ index c222f08..b46e737 100644 + break; + case 1: + correctionValue = [ 0 , -(ret.y + menuSize.cy - linkOffset.top)]; -+ arrowtop = menuSize.cy - 1; ++ arrowtop = menuSize.cy - 2; + arrowleft = (linkOffset.left - ret.x + correctionValue[0]) + ( $(this.link).width() / 2 ) - parseInt( $(this._ui.arrow).css("border-width") ) / 2; + $(this._ui.arrow).attr( "class", "" ) + .addClass( "ui-arrow bottom" ); @@ -150,7 +150,7 @@ index c222f08..b46e737 100644 + options = []; + } + if ( !options.link ) { -+ self.link = $(event.target).closest('a')[0]; ++ self.link = ( $(event.target).closest('a')[0] || $(event.target).closest('div')[0] ); + } else { + self.link = options.link; + } -- 2.7.4