From a8108fdaa02eb4d7229150f1f294bdabfcc646f9 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Mon, 29 Jan 2007 00:14:51 +0000 Subject: [PATCH] Extend from Canvas so that the chat overlay scrollbar works. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@160 c613c5cb-e716-0410-b11b-feb51c14d237 --- src/as/com/threerings/ezgame/client/EZGamePanel.as | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/as/com/threerings/ezgame/client/EZGamePanel.as b/src/as/com/threerings/ezgame/client/EZGamePanel.as index b726f58a..6e726c9c 100644 --- a/src/as/com/threerings/ezgame/client/EZGamePanel.as +++ b/src/as/com/threerings/ezgame/client/EZGamePanel.as @@ -9,7 +9,6 @@ import flash.events.Event; import flash.utils.Dictionary; import mx.containers.Canvas; -import mx.containers.VBox; import mx.core.Container; import mx.core.IChildList; @@ -25,7 +24,7 @@ import com.threerings.crowd.util.CrowdContext; import com.threerings.ezgame.data.EZGameConfig; import com.threerings.ezgame.data.EZGameObject; -public class EZGamePanel extends VBox +public class EZGamePanel extends Canvas implements PlaceView { /** The game object backend. */ @@ -46,6 +45,8 @@ public class EZGamePanel extends VBox backend = createBackend(); _gameView = new GameContainer(cfg.configData); // TODO? + _gameView.percentWidth = 100; + _gameView.percentHeight = 100; backend.setSharedEvents( Loader(_gameView.getMediaContainer().getMedia()). contentLoaderInfo.sharedEvents);