[the-board] [ui] Fix window size query in Page
- From: Lucas Almeida Rocha <lucasr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [the-board] [ui] Fix window size query in Page
- Date: Sun, 14 Nov 2010 01:49:16 +0000 (UTC)
commit c4be37b402b03b287efc9fa614828ea339e779b9
Author: Lucas Rocha <lucasr gnome org>
Date: Sun Nov 14 01:48:46 2010 +0000
[ui] Fix window size query in Page
src/js/ui/page.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/js/ui/page.js b/src/js/ui/page.js
index cdb5e1d..3d0533b 100644
--- a/src/js/ui/page.js
+++ b/src/js/ui/page.js
@@ -272,8 +272,7 @@ Page.prototype = {
},
_getAnimationAnchorForNewThing : function(thing) {
- let windowWidth = this._context.mainWindow.actor.width;
- let windowHeight = this._context.mainWindow.actor.height;
+ let [windowWidth, windowHeight] = this._context.gtkWindow.get_size();
let col = Math.floor(thing.actor.x / (windowWidth / _N_COLS_SLIDE_IN));
let row = Math.floor(thing.actor.y / (windowHeight / _N_ROWS_SLIDE_IN));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]