mirror of
https://github.com/taskgenius/taskgenius-plugin.git
synced 2026-07-22 06:40:25 +00:00
fix(quick-capture): prevent window height expansion during text input
The quick capture window was continuously growing in height as users typed, caused by the autoResizeTextarea function resizing both the textarea and the window itself. Now only the textarea resizes within fixed window bounds.
This commit is contained in:
parent
723d555a47
commit
f4c0ebcde1
1 changed files with 2 additions and 5 deletions
|
|
@ -926,11 +926,8 @@ export class ElectronQuickCapture {
|
|||
const newHeight = Math.min(textarea.scrollHeight, 300);
|
||||
textarea.style.height = newHeight + 'px';
|
||||
|
||||
// Resize the window if needed
|
||||
if (window.resizeTo) {
|
||||
const windowHeight = document.body.scrollHeight + 40;
|
||||
window.resizeTo(500, Math.min(windowHeight, 800));
|
||||
}
|
||||
// Don't resize the window - let the container handle overflow
|
||||
// The window size should remain stable
|
||||
}
|
||||
|
||||
// Initialize
|
||||
|
|
|
|||
Loading…
Reference in a new issue