Index: third_party/google_input_tools/src/chrome/os/inputview/elements/content/material/spacekey.js |
diff --git a/third_party/google_input_tools/src/chrome/os/inputview/elements/content/material/spacekey.js b/third_party/google_input_tools/src/chrome/os/inputview/elements/content/material/spacekey.js |
index a927fd47c71ccb93f9a705741b2e7d4628cc24dc..479db6b036d51eabf6b15531223aeb6eb7d1ed77 100644 |
--- a/third_party/google_input_tools/src/chrome/os/inputview/elements/content/material/spacekey.js |
+++ b/third_party/google_input_tools/src/chrome/os/inputview/elements/content/material/spacekey.js |
@@ -184,7 +184,7 @@ SpaceKey.prototype.resize = function(width, height) { |
goog.style.setSize(this.wrapper_, width, SpaceKey.HEIGHT); |
// Positions the wrapper in the middle. |
- this.wrapper_.style.top = (height - SpaceKey.HEIGHT) / 2 + 'px'; |
+ this.wrapper_.style.top = (this.availableHeight - SpaceKey.HEIGHT) / 2 + 'px'; |
}; |
}); // goog.scope |