You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by yi...@apache.org on 2021/08/03 09:39:37 UTC

[royale-asjs] 01/02: Revert "Experimental VDividedBox. Reference #1137"

This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch divided
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit dd0f26962c5be247ede5fbdeda32068085251871
Author: Yishay Weiss <yi...@hotmail.com>
AuthorDate: Tue Aug 3 09:42:38 2021 +0300

    Revert "Experimental VDividedBox. Reference #1137"
    
    This reverts commit af2fd3124c7d5506d5e90fb119a47a45c56d23b8.
---
 .../src/main/royale/mx/containers/VDividedBox.as   | 30 ----------------------
 1 file changed, 30 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/VDividedBox.as b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/VDividedBox.as
index f903016..5620de8 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/VDividedBox.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/VDividedBox.as
@@ -76,7 +76,6 @@ public class VDividedBox extends DividedBox
 	//
 	//--------------------------------------------------------------------------
 
-	import org.apache.royale.events.MouseEvent;
 	/**
 	 *  Constructor.
 	 *  
@@ -89,37 +88,8 @@ public class VDividedBox extends DividedBox
 	{
 		super();
 		typeNames = "VDividedBox";
-		super.direction = "vertical";
-		addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
 	}
 
-	protected function mouseDownHandler(event:MouseEvent):void
-	{
-		if (event.target != this)
-		{
-			return;
-		}
-		addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
-		topMostEventDispatcher.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
-	}
-
-	protected function mouseUpHandler(event:MouseEvent):void
-	{
-		removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
-		topMostEventDispatcher.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
-	}
-
-	protected function mouseMoveHandler(event:MouseEvent):void
-	{
-		var h1:int = Math.floor(100 * event.localY / height);
-		h1 = Math.min(h1, 95);
-		h1 = Math.max(h1, 5);
-		getChildAt(0).percentHeight = h1;
-		getChildAt(1).percentHeight = 100 - h1;
-		_layout.layout();
-	}
-
-
 	//--------------------------------------------------------------------------
 	//
 	//  Overridden properties