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
7 Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
9 .../js/jquery.mobile.forms.textinput.js | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
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;
20 - if ( clientHeight < scrollHeight ) {
21 + if ( clientHeight < scrollHeight && window.innerHeight / 2 > scrollHeight ) {
22 input.height(scrollHeight + extraLineHeight);