Skip to content

Commit 251585d

Browse files
committed
Apply header rendering only after new styles have been set
Signed-off-by: Itay Dafna <[email protected]>
1 parent 010bbdc commit 251585d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/feathergrid.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,6 @@ export class FeatherGrid extends Widget {
608608

609609
public updateGridStyle(): void {
610610
this.setGridStyle();
611-
this._updateHeaderRenderer();
612611

613612
if (!this._defaultRendererSet) {
614613
this.defaultRenderer = new TextRenderer({
@@ -652,6 +651,8 @@ export class FeatherGrid extends Widget {
652651
isLightTheme: this._isLightTheme,
653652
grid: this.grid,
654653
});
654+
655+
this._updateHeaderRenderer();
655656
}
656657

657658
copyToClipboard(): void {

0 commit comments

Comments
 (0)