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

Unified Diff: chrome/browser/chromeos/login/guest_user_view.cc

Issue 4179001: [cros] Fix UI issues on SignIn pod. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 10 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 | « chrome/browser/chromeos/login/existing_user_view.cc ('k') | chrome/browser/chromeos/login/helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/guest_user_view.cc
diff --git a/chrome/browser/chromeos/login/guest_user_view.cc b/chrome/browser/chromeos/login/guest_user_view.cc
index c26db80980d3af85d7ff795c6cebb2ba6dfa46e4..44dac3b22bd63fc400fe087e91a2c7162d616752 100644
--- a/chrome/browser/chromeos/login/guest_user_view.cc
+++ b/chrome/browser/chromeos/login/guest_user_view.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/chromeos/login/guest_user_view.h"
#include "app/l10n_util.h"
+#include "chrome/browser/chromeos/login/helper.h"
#include "chrome/browser/chromeos/login/user_controller.h"
#include "chrome/browser/chromeos/login/wizard_accessibility_helper.h"
#include "grit/generated_resources.h"
@@ -64,6 +65,7 @@ void GuestUserView::RecreateFields() {
submit_button_ = new UserEntryButton(
user_controller_,
l10n_util::GetString(IDS_LOGIN_BUTTON));
+ login::CorrectNativeButtonFontSize(submit_button_);
AddChildView(submit_button_);
Layout();
SchedulePaint();
@@ -102,11 +104,13 @@ void GuestUserView::OnLocaleChanged() {
void GuestUserView::Layout() {
gfx::Size submit_button_size = submit_button_->GetPreferredSize();
- int submit_button_x = (width() - submit_button_size.width()) / 2;
+ int submit_button_width = std::max(login::kButtonMinWidth,
+ submit_button_size.width());
+ int submit_button_x = (width() - submit_button_width) / 2;
int submit_button_y = (height() - submit_button_size.height()) / 2;
submit_button_->SetBounds(submit_button_x,
submit_button_y,
- submit_button_size.width(),
+ submit_button_width,
submit_button_size.height());
}
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_view.cc ('k') | chrome/browser/chromeos/login/helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698