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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user