Skip to content

Commit

Permalink
fix: DH-14240 hasHeaders false should hide header bar
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmmcken committed Feb 14, 2023
1 parent 034cb15 commit 51f4509
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/golden-layout/src/items/Stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,11 +588,12 @@ export default class Stack extends AbstractContentItem {
? this._header.show
: undefined;

this.header.element.toggle(!!this._header.show);

if (!side) {
return;
}

this.header.element.toggle(!!this._header.show);
this._side = side;
this._sided = ['right', 'left'].indexOf(this._side.toString()) >= 0;
this.element.removeClass('lm_left lm_right lm_bottom');
Expand Down

0 comments on commit 51f4509

Please sign in to comment.