Skip to content

Commit

Permalink
fix: devtools bigger than window when resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Jul 27, 2022
1 parent 7fe9a28 commit 20bb7d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/DevtoolsFrame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ export default class DevtoolsFrame {
$document.off('mouseup', this.onResizeEnd);
};
private resize = () => {
const { height } = this;
let { height } = this;
if (height > window.innerHeight) {
height = window.innerHeight;
this.setHeight(height);
}
this.$container.css({
height,
});
Expand Down

0 comments on commit 20bb7d4

Please sign in to comment.