Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Code refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Mar 9, 2020
1 parent 7fc6a8b commit b173029
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tablecellproperties/ui/tablecellpropertiesview.js
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ export default class TableCellPropertiesView extends View {
// -- Horizontal ---------------------------------------------------

const horizontalAlignmentToolbar = new ToolbarView( locale );
const isRTLContent = this.locale.contentLanguageDirection === 'rtl';
const isContentRTL = this.locale.contentLanguageDirection === 'rtl';

horizontalAlignmentToolbar.set( {
isCompact: true,
Expand All @@ -696,7 +696,7 @@ export default class TableCellPropertiesView extends View {
labels: this._horizontalAlignmentLabels,
propertyName: 'horizontalAlignment',
nameToValue: name => {
return name === ( isRTLContent ? 'right' : 'left' ) ? '' : name;
return name === ( isContentRTL ? 'right' : 'left' ) ? '' : name;
}
} );

Expand Down

0 comments on commit b173029

Please sign in to comment.