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

Unified Diff: ui/message_center/cocoa/notification_controller.mm

Issue 13560002: Added padding below text in notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
Index: ui/message_center/cocoa/notification_controller.mm
diff --git a/ui/message_center/cocoa/notification_controller.mm b/ui/message_center/cocoa/notification_controller.mm
index 3eda7e056ef9f4226c0d64d675db5cc7cb39e90c..615e44a06d92018db1d969a1aabe74b98283b255 100644
--- a/ui/message_center/cocoa/notification_controller.mm
+++ b/ui/message_center/cocoa/notification_controller.mm
@@ -79,8 +79,8 @@
// In this basic notification UI, the message body is the bottom-most
// vertical element. If it is out of the rootView's bounds, resize the view.
- if (NSMinY([message_ frame]) < message_center::kTextTopPadding) {
- rootFrame.size.height += message_center::kTextTopPadding -
+ if (NSMinY([message_ frame]) < message_center::kTextTopPadding - 6) {
+ rootFrame.size.height += message_center::kTextTopPadding - 6 -
NSMinY([message_ frame]);
}
@@ -159,7 +159,8 @@
CGFloat delta =
[GTMUILocalizerAndLayoutTweaker sizeToFitFixedWidthTextField:title_];
frame.size.height = delta;
- frame.origin.y = NSMaxY(rootFrame) - message_center::kTextTopPadding - delta;
+ frame.origin.y = NSMaxY(rootFrame) - message_center::kTextTopPadding - 6 -
+ delta;
[title_ setFrame:frame];
}
@@ -175,7 +176,7 @@
CGFloat delta =
[GTMUILocalizerAndLayoutTweaker sizeToFitFixedWidthTextField:message_];
frame.size.height = delta;
- frame.origin.y = maxY - message_center::kTextTopPadding - delta;
+ frame.origin.y = maxY - message_center::kTextTopPadding - 6 - delta;
[message_ setFrame:frame];
}
« no previous file with comments | « no previous file | ui/message_center/message_center_constants.cc » ('j') | ui/message_center/message_center_constants.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698