Skip to content

Commit

Permalink
🐛 ensure full-screen mode can be exited
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Dec 17, 2024
1 parent d0a8ee3 commit c2210d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@ourworldindata/grapher/src/core/Grapher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2419,6 +2419,7 @@ export class Grapher
}

@computed get hideFullScreenButton(): boolean {
if (this.isInFullScreenMode) return false
// hide the full screen button if the full screen height
// is barely larger than the current chart height
const fullScreenHeight = this.windowInnerHeight!
Expand Down

0 comments on commit c2210d9

Please sign in to comment.