Index: ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc |
diff --git a/ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc b/ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc |
index 956442ae2fd73957e5a02fad873702dd0bde6b7c..8e0de691ce83054fdd789fe52a466d0d68f9c015 100644 |
--- a/ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc |
+++ b/ash/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc |
@@ -7,6 +7,7 @@ |
#include "ash/keyboard/keyboard_ui.h" |
#include "ash/shelf/shelf.h" |
#include "ash/shelf/shelf_constants.h" |
+#include "ash/shelf/shelf_util.h" |
#include "ash/shell.h" |
#include "ash/system/status_area_widget.h" |
#include "ash/system/tray/system_tray_notifier.h" |
@@ -60,7 +61,7 @@ void VirtualKeyboardTray::SetShelfAlignment(ShelfAlignment alignment) { |
// Square up the padding if horizontally aligned. Avoid extra padding when |
// vertically aligned as the button would violate the width constraint on the |
// shelf. |
- if (alignment == SHELF_ALIGNMENT_BOTTOM) { |
+ if (IsHorizontalAlignment(alignment)) { |
gfx::Insets insets = button_->GetInsets(); |
int additional_padding = std::max(0, top_padding - left_padding); |
left_padding += additional_padding; |