[the-board] [ui] Always use GtkWindow size instead of MainWindow size



commit 4b89cf13e6413a569b8b8d1008fbf58e46127660
Author: Lucas Rocha <lucasr gnome org>
Date:   Sat Nov 27 01:54:49 2010 +0000

    [ui] Always use GtkWindow size instead of MainWindow size

 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 73c78e7..14ece9c 100644
--- a/src/js/ui/page.js
+++ b/src/js/ui/page.js
@@ -151,8 +151,7 @@ Page.prototype = {
     },
 
     _findPositionForNewThing : 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 totalWidth = windowWidth +_NEW_THING_LEFT_MARGIN;
         let totalHeight = windowHeight + _NEW_THING_TOP_MARGIN;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]