From e3d9864f75dd80aad723f966b3b66a398adf6bea Mon Sep 17 00:00:00 2001 From: Chad Pilkey Date: Thu, 6 Sep 2018 13:43:37 -0700 Subject: [PATCH] reset rolledOver when user itemrenderers are used for a different user --- .../modules/users/views/MediaItemRenderer.mxml | 10 +++++++++- .../modules/users/views/StatusItemRenderer.mxml | 9 +++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/users/views/MediaItemRenderer.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/users/views/MediaItemRenderer.mxml index e788a5f1ac..3418e59711 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/users/views/MediaItemRenderer.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/users/views/MediaItemRenderer.mxml @@ -91,8 +91,16 @@ BindingUtils.bindSetter(updateButtons, viewingStreamInd, "visible"); } + override public function set data(value:Object):void { + //reset rolledOver when the data changes because onRollOut wont be called if the row moves + if (data == null || value == null || data.userId != value.userId) { + rolledOver = false; + } + + super.data = value; + } + private function dataChangeHandler(e:Event):void { - //rest rolledOver when the data changes because onRollOut wont be called if the row moves if (data != null) { updateButtons(); validateNow(); diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/users/views/StatusItemRenderer.mxml b/bigbluebutton-client/src/org/bigbluebutton/modules/users/views/StatusItemRenderer.mxml index 95f897cf8b..9231c05204 100755 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/users/views/StatusItemRenderer.mxml +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/users/views/StatusItemRenderer.mxml @@ -84,6 +84,15 @@ validateNow(); } + override public function set data(value:Object):void { + //reset rolledOver when the data changes because onRollOut wont be called if the row moves + if (data == null || value == null || data.userId != value.userId) { + rolledOver = false; + } + + super.data = value; + } + private function dataChangeHandler(e:Event):void { if (data != null) { updateButtons(); //reassess data state on change