[gnome-shell] Bug 588445 - Use BigBox vertical alignment for the clock
- From: Sander Dijkhuis <sanderd src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-shell] Bug 588445 - Use BigBox vertical alignment for the clock
- Date: Mon, 13 Jul 2009 14:17:19 +0000 (UTC)
commit f7a82d6400180fcc614146573cbf92adc0c83780
Author: Sander Dijkhuis <sander dijkhuis gmail com>
Date: Mon Jul 13 14:44:54 2009 +0200
Bug 588445 - Use BigBox vertical alignment for the clock
panel.js: Replace the manual vertical padding calculation
for the panel's clock with an y_align property on its
BigBox container.
js/ui/panel.js | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index a7f6827..bddb6ae 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -109,9 +109,7 @@ Panel.prototype = {
this._clock = new Clutter.Text({ font_name: "Sans Bold 16px",
text: "" });
- let pad = (PANEL_HEIGHT - this._clock.height) / 2;
- let clockbox = new Big.Box({ padding_top: pad,
- padding_bottom: pad,
+ let clockbox = new Big.Box({ y_align: Big.BoxAlignment.CENTER,
padding_left: 4,
padding_right: 4 });
clockbox.append(this._clock, Big.BoxPackFlags.NONE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]