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

Unified Diff: third_party/google_input_tools/src/chrome/os/inputview/elements/layout/handwritinglayout.js

Issue 899673003: Uprev Google Input Tools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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: third_party/google_input_tools/src/chrome/os/inputview/elements/layout/handwritinglayout.js
diff --git a/third_party/google_input_tools/src/chrome/os/inputview/elements/layout/handwritinglayout.js b/third_party/google_input_tools/src/chrome/os/inputview/elements/layout/handwritinglayout.js
index eb24e722d79a9743b6dd234ed8abd59d143d0358..1024ff61172da366c275f60831ca034f9490b38c 100644
--- a/third_party/google_input_tools/src/chrome/os/inputview/elements/layout/handwritinglayout.js
+++ b/third_party/google_input_tools/src/chrome/os/inputview/elements/layout/handwritinglayout.js
@@ -15,6 +15,7 @@ goog.provide('i18n.input.chrome.inputview.elements.layout.HandwritingLayout');
goog.require('goog.dom.classlist');
goog.require('i18n.input.chrome.inputview.Css');
+goog.require('i18n.input.chrome.inputview.GlobalFlags');
goog.require('i18n.input.chrome.inputview.elements.Element');
goog.require('i18n.input.chrome.inputview.elements.ElementType');
goog.require('i18n.input.chrome.inputview.elements.Weightable');
@@ -113,9 +114,11 @@ HandwritingLayout.prototype.resize = function(width, height) {
child.resize(
Math.ceil(width * child.getWidthInWeight() / this.widthInWeight_),
Math.ceil(height * child.getHeightInWeight() / this.heightInWeight_));
- // 85/140 = 0.6
- child.getElement().style.top =
- Math.ceil(height * 0.6 / this.heightInWeight_);
+ if (!i18n.input.chrome.inputview.GlobalFlags.isQPInputView) {
+ // 85/140 = 0.6
+ child.getElement().style.top =
+ Math.ceil(height * 0.6 / this.heightInWeight_);
+ }
}
};
}); // goog.scope

Powered by Google App Engine
This is Rietveld 408576698