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

Unified Diff: ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc

Issue 2221283002: Fix VirtualKeyboardTray border (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc
diff --git a/ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc b/ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc
index 39eae983dde818d98b91a90c9c0b57ac2322b111..19a6c66273b60c02961b78df9fbd2443ffe56e60 100644
--- a/ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc
+++ b/ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.cc
@@ -98,6 +98,8 @@ void VirtualKeyboardTray::OnKeyboardBoundsChanging(
}
void VirtualKeyboardTray::SetIconBorderForShelfAlignment() {
+ tray_container()->SetBorder(views::Border::NullBorder());
James Cook 2016/08/09 15:54:32 Why does this have to be done every time the shelf
mohsen 2016/08/09 16:32:51 After each shelf alignment change, the border is r
+
const gfx::ImageSkia& image = icon_->GetImage();
const int size = GetTrayConstant(VIRTUAL_KEYBOARD_BUTTON_SIZE);
const int vertical_padding = (size - image.height()) / 2;
« 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