summaryrefslogtreecommitdiffstats
path: root/ash/system
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-30 19:45:53 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-30 19:45:53 +0000
commite3171b346e6919f4162ea128d0f7b342cf878fd4 (patch)
tree4dfb5f445528fb13e0e2ec6b38fd41a83d91f13f /ash/system
parent84432c46fa22f9332ad5844fcc14b26e975c08d5 (diff)
downloadchromium_src-e3171b346e6919f4162ea128d0f7b342cf878fd4.zip
chromium_src-e3171b346e6919f4162ea128d0f7b342cf878fd4.tar.gz
chromium_src-e3171b346e6919f4162ea128d0f7b342cf878fd4.tar.bz2
ash: Fix right-alignment of power-status text.
It turns out setting ALING_RIGHT on a Label isn't enough to get proper right-aligned text. Label has to be explicitly told that it is multi-lined. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9918026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129898 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/system')
-rw-r--r--ash/system/power/tray_power.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ash/system/power/tray_power.cc b/ash/system/power/tray_power.cc
index 41e733c..ae64503 100644
--- a/ash/system/power/tray_power.cc
+++ b/ash/system/power/tray_power.cc
@@ -103,6 +103,7 @@ class PowerPopupView : public views::Label {
public:
PowerPopupView() {
SetHorizontalAlignment(ALIGN_RIGHT);
+ SetMultiLine(true);
UpdateText();
}