Skip to content

Commit

Permalink
Minor visual fixes to input box
Browse files Browse the repository at this point in the history
Adjust input size on the 'textChanged' event, preventing the scroll bar from appearing and the text box from lagging behind the text when hitting shift+enter
  • Loading branch information
KiraSmith-Dev authored Jul 11, 2021
1 parent ce62acf commit b8e20aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/InputPanel/InputPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ export class InputPanel extends QWidget {
input.addEventListener(WidgetEventTypes.DragEnter, this.handleDrag.bind(this));
input.addEventListener(WidgetEventTypes.KeyPress, this.handleKeyPress.bind(this));
input.addEventListener(WidgetEventTypes.KeyRelease, this.handleKeyRelease.bind(this));
input.addEventListener('textChanged', this.adjustInputSize.bind(this));

rootLayout.addWidget(addBtn);
rootLayout.addWidget(input, 1);
Expand Down

0 comments on commit b8e20aa

Please sign in to comment.