Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4464)

Unified Diff: chrome/browser/resources/keyboard/main.js

Issue 7084033: Catch exception when register extension with inputUI. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Update Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/keyboard/main.js
diff --git a/chrome/browser/resources/keyboard/main.js b/chrome/browser/resources/keyboard/main.js
index 8a726e3d6669304a56098b9a15f79fd0c28604af..71b1d647c9f6247fe942e397fd0cafd3efafe41c 100644
--- a/chrome/browser/resources/keyboard/main.js
+++ b/chrome/browser/resources/keyboard/main.js
@@ -578,7 +578,7 @@ var allRows = []; // Populated during start()
*/
function getRowHeight() {
var x = window.innerWidth;
- var y = window.innerHeight - IME_HEIGHT - 2;
+ var y = window.innerHeight - (imeEnabled ? IME_HEIGHT - 2 : 0);
return (x > kKeyboardAspect * y) ?
(height = Math.floor(y / 4)) :
(height = Math.floor(x / (kKeyboardAspect * 4)));
« chrome/browser/resources/keyboard/ime.js ('K') | « chrome/browser/resources/keyboard/ime.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698