Skip to content

Commit

Permalink
Fix toolbox positioning
Browse files Browse the repository at this point in the history
/me is currently wondering what qualifies you to put "tech" at the start of your name
  • Loading branch information
systemed committed Oct 18, 2012
1 parent e94fece commit 0247dab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions potlatch2.mxml
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,12 @@
}
}
private function suggestToolboxX():int {
return theMap.localToGlobal(new Point(theMap.width,theMap.height)).x - toolbox.width - 5;
var rhCP:Point=rhContent.localToGlobal(new Point(0,0));
return rhCP.x + theMap.scrollRect.width - toolbox.width - 5;
}
private function suggestToolboxY(yOffset:int=0):int {
return theMap.localToGlobal(new Point(theMap.width,theMap.height)).y - toolbox.height - 5 - yOffset;
var rhCP:Point=rhContent.localToGlobal(new Point(0,0)); // stage co-ordinates of right-hand content area
return rhCP.y + theMap.scrollRect.height - toolbox.height - 5 - yOffset;
}
private function disableMapMouse():void {
Expand Down

0 comments on commit 0247dab

Please sign in to comment.