Popup: Apply tizen style popup and attribute support
[platform/framework/web/web-ui-fw.git] / libs / patch / jqm-1.1.0 / 0015-JQM-If-height-of-textarea-is-bigger-than-window.inne.patch
1 From c8f2ce6d45c42d572ef96cc166a64c8d60bc5ef8 Mon Sep 17 00:00:00 2001
2 From: Minkyu Kang <mk7.kang@samsung.com>
3 Date: Thu, 9 Aug 2012 17:36:11 +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/jquery.mobile.forms.textinput.js            |    2 +-
10  1 file changed, 1 insertion(+), 1 deletion(-)
11
12 diff --git a/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.textinput.js b/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.textinput.js
13 index f444522..681b9b4 100644
14 --- a/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.textinput.js
15 +++ b/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.forms.textinput.js
16 @@ -73,7 +73,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