From 812ab955b44f902179d43ad7df163eddde20833a Mon Sep 17 00:00:00 2001 From: Nathan Curtis Date: Tue, 6 May 2008 22:13:30 +0000 Subject: [PATCH] Actually, the list creator can assign a style name to the specific instance. Internally we need to assign a style name to the List instance. Also made the default renderer always use a transparent background. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@486 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/as/com/threerings/flex/PlayerList.as | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/as/com/threerings/flex/PlayerList.as b/src/as/com/threerings/flex/PlayerList.as index c017b255..ba01ea6b 100644 --- a/src/as/com/threerings/flex/PlayerList.as +++ b/src/as/com/threerings/flex/PlayerList.as @@ -43,8 +43,6 @@ public class PlayerList extends VBox */ public function PlayerList (labelCreator :NameLabelCreator = null) :void { - styleName = "playerList"; - _labelCreator = labelCreator; if (_labelCreator == null) { _labelCreator = new DefaultNameLabelCreator(); @@ -60,6 +58,7 @@ public class PlayerList extends VBox _list.percentHeight = 100; _list.itemRenderer = new ClassFactory(getRenderingClass()); _list.dataProvider = _players; + _list.styleName = "playerList"; addChild(_list); @@ -187,6 +186,7 @@ class PlayerRenderer extends HBox verticalScrollPolicy = ScrollPolicy.OFF; horizontalScrollPolicy = ScrollPolicy.OFF; + setStyle("backgroundAlpha", 0); // the horizontalGap should be 8... }