Improve RTL styles init.
This commit is contained in:
parent
7f96487eba
commit
d65eb30fed
@ -443,6 +443,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
if (!StringUtils.isEmpty(brandingOptions.toolbarColor)) {
|
||||
mainBox.setStyle("backgroundColor", uint("0x" + brandingOptions.toolbarColor.substr(1)));
|
||||
}
|
||||
|
||||
updateStyle();
|
||||
}
|
||||
|
||||
private function onDisconnectTest():void{
|
||||
@ -460,15 +462,18 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
|
||||
private function localeChanged(event:LocaleChangeEvent) : void {
|
||||
updateStyle();
|
||||
initBreakoutRibbon();
|
||||
updateMeetingNameLabel();
|
||||
}
|
||||
|
||||
private function updateStyle():void {
|
||||
var styleNameExt : String = "";
|
||||
if (ResourceUtil.getInstance().isRTLEnabled() && ResourceUtil.getInstance().getCurrentLanguageDirection() == Direction.RTL) {
|
||||
styleNameExt = "RTL";
|
||||
}
|
||||
|
||||
btnLogout.styleName = "logoutButtonStyle" + styleNameExt;
|
||||
|
||||
initBreakoutRibbon();
|
||||
updateMeetingNameLabel();
|
||||
}
|
||||
|
||||
private function openSettings(e:Event = null):void{
|
||||
|
@ -52,11 +52,11 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import flash.events.TextEvent;
|
||||
|
||||
import flashx.textLayout.formats.Direction;
|
||||
|
||||
import mx.binding.utils.BindingUtils;
|
||||
import mx.events.ScrollEvent;
|
||||
|
||||
import flashx.textLayout.formats.Direction;
|
||||
|
||||
import org.as3commons.lang.StringUtils;
|
||||
import org.as3commons.logging.api.ILogger;
|
||||
import org.as3commons.logging.api.getClassLogger;
|
||||
@ -80,7 +80,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
import org.bigbluebutton.modules.chat.events.SendPrivateChatMessageEvent;
|
||||
import org.bigbluebutton.modules.chat.events.SendPublicChatMessageEvent;
|
||||
import org.bigbluebutton.modules.chat.model.ChatConversation;
|
||||
import org.bigbluebutton.modules.chat.model.ChatMessage;
|
||||
import org.bigbluebutton.modules.chat.model.ChatOptions;
|
||||
import org.bigbluebutton.modules.chat.vo.ChatMessageVO;
|
||||
import org.bigbluebutton.modules.polling.events.StartCustomPollEvent;
|
||||
@ -167,6 +166,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
// chatToolbar.registerListeners(chatMessagesList);
|
||||
|
||||
chatMessagesList.addEventListener(ChatEvent.RESIZE_CHAT_TOOLBAR, adjustToolbarWidthAccordingToScrollBar);
|
||||
|
||||
updateStyles();
|
||||
}
|
||||
|
||||
|
||||
|
@ -46,6 +46,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
private function init():void {
|
||||
refreshRole(UsersUtil.amIModerator());
|
||||
updateStyles();
|
||||
}
|
||||
|
||||
private function onClick(e:Event):void {
|
||||
@ -57,6 +58,10 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
||||
}
|
||||
|
||||
private function localeChanged(event:LocaleChangeEvent) : void {
|
||||
updateStyles();
|
||||
}
|
||||
|
||||
private function updateStyles():void {
|
||||
var styleNameExt : String = "";
|
||||
if (ResourceUtil.getInstance().isRTLEnabled() && ResourceUtil.getInstance().getCurrentLanguageDirection() == Direction.RTL) {
|
||||
styleNameExt = "RTL";
|
||||
|
@ -147,6 +147,8 @@
|
||||
|
||||
typistsTimer.addEventListener(TimerEvent.TIMER, updateTypists);
|
||||
typistsTimer.start();
|
||||
|
||||
updateStyles();
|
||||
}
|
||||
|
||||
private function updateTypists(e:Event):void {
|
||||
@ -578,6 +580,10 @@
|
||||
}
|
||||
|
||||
private function onLocaleChanged(event:LocaleChangeEvent):void {
|
||||
updateStyles();
|
||||
}
|
||||
|
||||
private function updateStyles():void {
|
||||
var styleNameExt : String = "";
|
||||
if (ResourceUtil.getInstance().isRTLEnabled() && ResourceUtil.getInstance().getCurrentLanguageDirection() == Direction.RTL) {
|
||||
styleNameExt = "RTL";
|
||||
|
Loading…
Reference in New Issue
Block a user