From d322b94545321dbfb0011fdcea72e8d7bb471724 Mon Sep 17 00:00:00 2001 From: Robert Zubeck Date: Wed, 13 Feb 2008 22:34:28 +0000 Subject: [PATCH] Chat control's child elements can now have a different height than their container. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@412 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/as/com/threerings/flex/ChatControl.as | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/as/com/threerings/flex/ChatControl.as b/src/as/com/threerings/flex/ChatControl.as index e9f4a091..bceba073 100644 --- a/src/as/com/threerings/flex/ChatControl.as +++ b/src/as/com/threerings/flex/ChatControl.as @@ -48,7 +48,8 @@ public class ChatControl extends HBox } public function ChatControl ( - ctx :CrowdContext, sendButtonLabel :String = "send", height :Number = NaN) + ctx :CrowdContext, sendButtonLabel :String = "send", + height :Number = NaN, controlHeight :Number = NaN) { _ctx = ctx; _chatDtr = _ctx.getChatDirector(); @@ -62,9 +63,9 @@ public class ChatControl extends HBox _but = new CommandButton(sendButtonLabel, sendChat); addChild(_but); - if (!isNaN(height)) { - _txt.height = height; - _but.height = height; + if (!isNaN(controlHeight)) { + _txt.height = controlHeight; + _but.height = controlHeight; } addEventListener(Event.ADDED_TO_STAGE, handleAddRemove);