Skip to content
Snippets Groups Projects
Unverified Commit 6751a25b authored by Anton Georgiev's avatar Anton Georgiev Committed by GitHub
Browse files

Merge pull request #7786 from KDSBrowne/issue-7782

Fix panel resizing for RTL locales
parents 899ed275 2fa59190
No related branches found
No related tags found
No related merge requests found
......@@ -206,13 +206,14 @@ class App extends Component {
renderPanel() {
const { enableResize } = this.state;
const { openPanel } = this.props;
const { openPanel, isRTL } = this.props;
return (
<PanelManager
{...{
openPanel,
enableResize,
isRTL,
}}
shouldAriaHide={this.shouldAriaHide}
/>
......
......@@ -105,6 +105,7 @@ export default injectIntl(withModalMounter(withTracker(({ intl, baseControls })
notify,
validIOSVersion,
isPhone: deviceInfo.type().isPhone,
isRTL: document.documentElement.getAttribute('dir') === 'rtl',
meetingMuted: voiceProp.muteOnStart,
currentUserEmoji: mapUser(currentUser).emoji,
hasPublishedPoll: publishedPoll,
......
......@@ -124,12 +124,13 @@ class PanelManager extends PureComponent {
renderUserListResizable() {
const { userlistWidth } = this.state;
const { isRTL } = this.props;
const resizableEnableOptions = {
top: false,
right: true,
right: !isRTL,
bottom: false,
left: false,
left: !!isRTL,
topRight: false,
bottomRight: false,
bottomLeft: false,
......@@ -172,12 +173,13 @@ class PanelManager extends PureComponent {
renderChatResizable() {
const { chatWidth } = this.state;
const { isRTL } = this.props;
const resizableEnableOptions = {
top: false,
right: true,
right: !isRTL,
bottom: false,
left: false,
left: !!isRTL,
topRight: false,
bottomRight: false,
bottomLeft: false,
......@@ -220,12 +222,13 @@ class PanelManager extends PureComponent {
renderNoteResizable() {
const { noteWidth } = this.state;
const { isRTL } = this.props;
const resizableEnableOptions = {
top: false,
right: true,
right: !isRTL,
bottom: false,
left: false,
left: !!isRTL,
topRight: false,
bottomRight: false,
bottomLeft: false,
......@@ -268,12 +271,13 @@ class PanelManager extends PureComponent {
renderCaptionsResizable() {
const { captionsWidth } = this.state;
const { isRTL } = this.props;
const resizableEnableOptions = {
top: false,
right: true,
right: !isRTL,
bottom: false,
left: false,
left: !!isRTL,
topRight: false,
bottomRight: false,
bottomLeft: false,
......@@ -316,12 +320,13 @@ class PanelManager extends PureComponent {
renderWaitingUsersPanelResizable() {
const { waitingWidth } = this.state;
const { isRTL } = this.props;
const resizableEnableOptions = {
top: false,
right: true,
right: !isRTL,
bottom: false,
left: false,
left: !!isRTL,
topRight: false,
bottomRight: false,
bottomLeft: false,
......@@ -366,12 +371,13 @@ class PanelManager extends PureComponent {
renderPollResizable() {
const { pollWidth } = this.state;
const { isRTL } = this.props;
const resizableEnableOptions = {
top: false,
right: true,
right: !isRTL,
bottom: false,
left: false,
left: !!isRTL,
topRight: false,
bottomRight: false,
bottomLeft: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment