[sushi] mainwindow: ensure the toolbar doesn't cover an horiz scrollbar
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] mainwindow: ensure the toolbar doesn't cover an horiz scrollbar
- Date: Wed, 11 May 2011 19:01:53 +0000 (UTC)
commit 99393ba0641ede6a5fcd2d656b97b1de0e2a19a6
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed May 11 14:59:52 2011 -0400
mainwindow: ensure the toolbar doesn't cover an horiz scrollbar
src/js/ui/mainWindow.js | 4 ++--
src/js/util/constants.js | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index b227bc5..2509d54 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -435,12 +435,12 @@ MainWindow.prototype = {
let yConstraint =
new Clutter.BindConstraint({ source: this._stage,
coordinate: Clutter.BindCoordinate.Y,
- offset: this._stage.height - 52 });
+ offset: this._stage.height - Constants.TOOLBAR_SPACING });
this._toolbarActor.add_constraint(yConstraint);
this._stage.connect("notify::height",
Lang.bind(this, function() {
- yConstraint.set_offset(this._stage.height - 52);
+ yConstraint.set_offset(this._stage.height - Constants.TOOLBAR_SPACING);
}));
},
diff --git a/src/js/util/constants.js b/src/js/util/constants.js
index 186b822..07928da 100644
--- a/src/js/util/constants.js
+++ b/src/js/util/constants.js
@@ -4,3 +4,4 @@ let VIEW_PADDING_Y = 28;
let VIEW_PADDING_X = 2;
let VIEW_MAX_W = 800;
let VIEW_MAX_H = 600;
+let TOOLBAR_SPACING = 60;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]