JQM: Do not add ui-btn-icon-only class at the select button
[platform/framework/web/web-ui-fw.git] / libs / patch / 0041-JQM-Remove-ui-btn-icon-only-class-from-select-button.patch
1 From 4c6c887221f11b8fd9496e71a46d8dac7067c3c2 Mon Sep 17 00:00:00 2001
2 From: Youmin Ha <youmin.ha@samsung.com>
3 Date: Sun, 7 Apr 2013 18:47:25 +0900
4 Subject: [PATCH] JQM: Remove ui-btn-icon-only class from select button
5
6 Change-Id: Ia68ea5fb23feb0c427d58110e7e70f0a239723c8
7 ---
8  .../jquery-mobile-1.2.0/js/widgets/forms/select.js |    4 ++++
9  1 file changed, 4 insertions(+)
10
11 diff --git a/libs/js/jquery-mobile-1.2.0/js/widgets/forms/select.js b/libs/js/jquery-mobile-1.2.0/js/widgets/forms/select.js
12 index 9c78a90..06f4c75 100644
13 --- a/libs/js/jquery-mobile-1.2.0/js/widgets/forms/select.js
14 +++ b/libs/js/jquery-mobile-1.2.0/js/widgets/forms/select.js
15 @@ -114,6 +114,10 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
16  
17                 this.setButtonText();
18  
19 +               // TIZEN fix: The TIZEN buttonMarkup patch adds 'ui-btn-icon-only' class to the ui-btn-inner.
20 +               // It makes the text not to be shown, so the class must be removed. (Like JQM)
21 +               button.children('.ui-btn-inner').removeClass('ui-btn-icon-only');
22 +
23                 // Opera does not properly support opacity on select elements
24                 // In Mini, it hides the element, but not its text
25                 // On the desktop,it seems to do the opposite
26 -- 
27 1.7.9.5
28