Skip to content

Commit 9e964d5

Browse files
authored
refactor: remove obsolete textAlign fallback (#10165)
1 parent c199fe1 commit 9e964d5

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

packages/grid/src/vaadin-grid-column-mixin.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -536,24 +536,8 @@ export const ColumnBaseMixin = (superClass) =>
536536
return;
537537
}
538538

539-
let textAlignFallback;
540-
if (getComputedStyle(this._grid).direction === 'ltr') {
541-
if (textAlign === 'start') {
542-
textAlignFallback = 'left';
543-
} else if (textAlign === 'end') {
544-
textAlignFallback = 'right';
545-
}
546-
} else if (textAlign === 'start') {
547-
textAlignFallback = 'right';
548-
} else if (textAlign === 'end') {
549-
textAlignFallback = 'left';
550-
}
551-
552539
this._allCells.forEach((cell) => {
553540
cell._content.style.textAlign = textAlign;
554-
if (getComputedStyle(cell._content).textAlign !== textAlign) {
555-
cell._content.style.textAlign = textAlignFallback;
556-
}
557541
});
558542
}
559543

0 commit comments

Comments
 (0)