Skip to content

Commit

Permalink
fix defaultOptions test for daterangebox
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeniyKiyashko committed Nov 6, 2023
1 parent ce9c740 commit aa87dd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/devextreme/js/ui/text_box/ui.text_editor.label.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import eventsEngine from '../../events/core/events_engine';
import { addNamespace } from '../../events/utils/index';
import { start as hoverStart } from '../../events/hover';
import { getWindow } from '../../core/utils/window';
import { getWidth } from '../../core/utils/size';

const TEXTEDITOR_LABEL_CLASS = 'dx-texteditor-label';
const TEXTEDITOR_WITH_LABEL_CLASS = 'dx-texteditor-with-label';
Expand Down Expand Up @@ -163,6 +164,7 @@ class TextEditorLabel {
const sign = this._props.editor.option('rtlEnabled') ? 1 : -1;

this._$labelSpan.css('transform', ' translateX(' + sign * this._$before.width() + 'px)');
this._$labelSpan.css('transform', 'translateX(' + sign * getWidth(this._$before) + 'px)');
}
}

Expand Down

0 comments on commit aa87dd2

Please sign in to comment.