[the-board] [ui] Fix typo on code to distribute things



commit 560b6d129ca3d79b44526a681168195a1e2f5639
Author: Lucas Rocha <lucasr gnome org>
Date:   Wed Jan 26 02:02:10 2011 +0000

    [ui] Fix typo on code to distribute things

 src/js/ui/page.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/js/ui/page.js b/src/js/ui/page.js
index debcce6..c9196bb 100644
--- a/src/js/ui/page.js
+++ b/src/js/ui/page.js
@@ -540,11 +540,11 @@ Page.prototype = {
         let sortByCoord = function(thingA, thingB) {
             switch(orientation) {
             case Orientation.VERTICAL:
-                return thingA.area.x1 - thingB.area.x1;
+                return thingA.area.y1 - thingB.area.y1;
                 break;
 
             case Orientation.HORIZONTAL:
-                return thingA.area.y1 - thingB.area.y1;
+                return thingA.area.x1 - thingB.area.x1;
                 break;
             }
 



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