Permalink
Browse files

[popup] Do not allow placement y-coordinate to be negative

  • Loading branch information...
1 parent a4d1c96 commit b89319a3827016b0714b879e3934234d9ba6b5be @gabrielschulhof gabrielschulhof committed Jul 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/widgets/popup.js
View
@@ -211,7 +211,7 @@ define( [ "jquery",
return {
x: fitSegmentInsideSegment( rc.cx, menuSize.cx, rc.l, x ),
- y: fitSegmentInsideSegment( rc.cy, menuSize.cy, rc.t, y )
+ y: Math.max( fitSegmentInsideSegment( rc.cy, menuSize.cy, rc.t, y ), 0 )
};
},

0 comments on commit b89319a

Please sign in to comment.