Skip to content

Commit

Permalink
feat: fire event to parent on maximise and minimise PA-891 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteematt committed Nov 2, 2023
1 parent b2afe3f commit 0ad4565
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@genesis-community/golden-layout",
"version": "2.10.1",
"version": "2.11.0",
"description": "A @genesis-community fork of the GoldenLayout multi-screen javascript Layout manager",
"keywords": [
"docking",
Expand Down
2 changes: 2 additions & 0 deletions src/ts/items/stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,10 @@ export class Stack extends ComponentParentableItem {
*/
toggleMaximise(): void {
if (this.isMaximised) {
this.layoutManager.tryDispatchEventToParent('minimised');
this.minimise();
} else {
this.layoutManager.tryDispatchEventToParent('maximised');
this.maximise();
}
}
Expand Down

0 comments on commit 0ad4565

Please sign in to comment.