Button: bug fix when button has not a text
[platform/framework/web/web-ui-fw.git] / libs / patch / 0007-JQM-If-height-of-textarea-is-bigger-than-window.inne.patch
1 From 723871c2841378d2e5c9f60459b010fa2223dd6b Mon Sep 17 00:00:00 2001
2 From: Minkyu Kang <mk7.kang@samsung.com>
3 Date: Mon, 26 Nov 2012 19:48:26 +0900
4 Subject: [PATCH] JQM: If height of textarea is bigger than
5  window.innerHeight/2, don't grow up anymore
6
7  Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
8 ---
9  .../js/widgets/forms/textinput.js                  |    2 +-
10  1 file changed, 1 insertion(+), 1 deletion(-)
11
12 diff --git a/libs/js/jquery-mobile-1.2.0/js/widgets/forms/textinput.js b/libs/js/jquery-mobile-1.2.0/js/widgets/forms/textinput.js
13 index c242aa3..08505ed 100644
14 --- a/libs/js/jquery-mobile-1.2.0/js/widgets/forms/textinput.js
15 +++ b/libs/js/jquery-mobile-1.2.0/js/widgets/forms/textinput.js
16 @@ -113,7 +113,7 @@ $.widget( "mobile.textinput", $.mobile.widget, {
17                                 var scrollHeight = input[ 0 ].scrollHeight,
18                                         clientHeight = input[ 0 ].clientHeight;
19  
20 -                               if ( clientHeight < scrollHeight ) {
21 +                               if ( clientHeight < scrollHeight && window.innerHeight / 2 > scrollHeight ) {
22                                         input.height(scrollHeight + extraLineHeight);
23                                 }
24                         };
25 -- 
26 1.7.9.5
27