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

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

Issue 7531026: Fix the issue that keyboard is not rendered properly after login. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/keyboard/main.js
diff --git a/chrome/browser/resources/keyboard/main.js b/chrome/browser/resources/keyboard/main.js
index 9ef5623193f23ad9fcfe9a16f8b34fecd4b0ed1b..075165425b5b8ceff8779bc9934645a9e45ec001 100644
--- a/chrome/browser/resources/keyboard/main.js
+++ b/chrome/browser/resources/keyboard/main.js
@@ -125,10 +125,11 @@ function initKeyboard(layout, element) {
}
var keyboardDiv = document.createElement('div');
keyboardDiv.id = getKeyboardId(layout);
- keyboardDiv.className = 'nodisplay';
+ keyboardDiv.className = 'keyboard';
bryeung 2011/08/03 21:11:42 the keyboard should ideally not be visible until i
mazda 2011/08/04 04:28:50 The keyboard is not visible at least until its nod
bryeung 2011/08/04 04:36:50 Yes: that makes sense. Thanks for the clarificati
initRows(layout, keyboardDiv);
initHandwritingCanvas(layout, keyboardDiv);
keyboard['keyboardDiv'] = keyboardDiv;
+ window.onresize();
element.appendChild(keyboardDiv);
}
@@ -137,8 +138,7 @@ function initKeyboard(layout, element) {
* @return {void}
*/
window.onresize = function() {
- var keyboardDiv = document.getElementById(getKeyboardId(
- currentKeyboardLayout));
+ var keyboardDiv = KEYBOARDS[currentKeyboardLayout]['keyboardDiv'];
var height = getKeyboardHeight();
keyboardDiv.style.height = height + 'px';
var mainDiv = document.getElementById('main');
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698