From 43be2f274cd02c0d4639df8ba1c23c14c191a813 Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Wed, 12 Jun 2013 09:45:51 +0530 Subject: [PATCH] Scroll to viewport after input methods list is rendered Added input methods may increase the height of window. Make sure the entire window is in view port. Bug: 49427 Change-Id: I06194b7d51459a31247104b2113ef3212774f004 --- resources/js/ext.uls.inputsettings.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/js/ext.uls.inputsettings.js b/resources/js/ext.uls.inputsettings.js index ec525ca8..de1a5f30 100644 --- a/resources/js/ext.uls.inputsettings.js +++ b/resources/js/ext.uls.inputsettings.js @@ -158,6 +158,10 @@ $imeListContainer.append( inputSettings.renderInputmethodOption( 'system', defaultInputmethod === 'system' ) ); + + // Added input methods may increase the height of window. Make sure + // the entire window is in view port + this.$parent.position(); }, renderInputmethodOption: function ( imeId, selected ) {