Skip to content

Commit

Permalink
fix: disable resizing windows when they are full-screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Renovamen committed Jul 24, 2021
1 parent 8c9a148 commit 01fa385
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Window.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ class Window extends Component<WindowProps, WindowState> {
minHeight={this.props.minHeight ? this.props.minHeight : 150}
dragHandleClassName="window-bar"
disableDragging={this.props.max}
enableResizing={!this.props.max}
style={{ zIndex: this.props.z }}
onMouseDown={() => this.props.focus(this.props.id)}
className={`absolute ${round} overflow-hidden bg-transparent w-full h-full ${border} shadow-md ${minimized}`}
Expand Down

0 comments on commit 01fa385

Please sign in to comment.