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

Unified Diff: ash/content/keyboard_overlay/keyboard_overlay_delegate.cc

Issue 2461053002: Center Keyboard Overlay in the work area (Closed)
Patch Set: Fix tests Created 4 years, 2 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 | ash/content/keyboard_overlay/keyboard_overlay_delegate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/content/keyboard_overlay/keyboard_overlay_delegate.cc
diff --git a/ash/content/keyboard_overlay/keyboard_overlay_delegate.cc b/ash/content/keyboard_overlay/keyboard_overlay_delegate.cc
index ec661d80fdea682447c0e7fdc172e017a97e7873..14af0f50d626e3e2eb882f15b871c666006edac7 100644
--- a/ash/content/keyboard_overlay/keyboard_overlay_delegate.cc
+++ b/ash/content/keyboard_overlay/keyboard_overlay_delegate.cc
@@ -83,7 +83,8 @@ views::Widget* KeyboardOverlayDelegate::Show(views::WebDialogView* view) {
->GetDisplayNearestWindow(widget_->GetNativeView())
.work_area();
gfx::Rect bounds(rect.x() + (rect.width() - size.width()) / 2,
- rect.bottom() - size.height(), size.width(), size.height());
+ rect.y() + (rect.height() - size.height()) / 2, size.width(),
+ size.height());
widget_->SetBounds(bounds);
// The widget will be shown when the web contents gets ready to display.
« no previous file with comments | « no previous file | ash/content/keyboard_overlay/keyboard_overlay_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698