[gmaps-utility-library-flash] r163 committed - bugfix: When contained in mxml vbox with top > 0, rubber band was inco...

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 27, 2009, 11:42:35 AM10/27/09
to google-maps-api-for-fla...@googlegroups.com
Revision: 163
Author: kevin.m...@pentura.ca
Date: Tue Oct 27 08:41:41 2009
Log: bugfix: When contained in mxml vbox with top > 0, rubber band was
incorrectly offset by -top.
http://code.google.com/p/gmaps-utility-library-flash/source/detail?r=163

Modified:
/trunk/src/com/google/maps/extras/rubberbandctrl/RubberBandCtrl.as

=======================================
--- /trunk/src/com/google/maps/extras/rubberbandctrl/RubberBandCtrl.as Wed
Sep 30 11:29:01 2009
+++ /trunk/src/com/google/maps/extras/rubberbandctrl/RubberBandCtrl.as Tue
Oct 27 08:41:41 2009
@@ -193,7 +193,7 @@
/**
* Set the thickness, in pixels, of the rubber band.
*
- * @param thickness The thickness of the rubber band, in pixels.
+ * @param pixels The thickness of the rubber band, in pixels.
*/
public function setRubberBandThickness (pixels:int):void
{
@@ -211,8 +211,8 @@
*/
public function setPanIncrement (pixels:int):void
{
- if (pixels < 0 || pixels > 1000) {
- throw new ArgumentError ("Increment exceeds limit of 0 .. 1000: " +
pixels);
+ if (pixels < 0) {
+ throw new ArgumentError ("Pan increment must be 0 or greater: " +
pixels);
}
panIncrementPx = pixels;
}
@@ -230,10 +230,10 @@

private function initRubberBandOverlay ():void
{
- rubberband.x = map.x;
- rubberband.y = map.y;
+ rubberband.x = 0;
+ rubberband.y = 0;
rubberband.visible = false;
- map.stage.addChild (rubberband);
+ map.addChild (rubberband);
}

private function removeEventHandlers ():void

Reply all
Reply to author
Forward
0 new messages