pkuliyi2015 / multidiffusion-upscaler-for-automatic1111

Tiled Diffusion and VAE optimize, licensed under CC BY-NC-SA 4.0
Other
4.59k stars 330 forks source link

Region control prompt text boxes reset to default size EVERY time you press Enter/Return #391

Open SunGod opened 2 months ago

SunGod commented 2 months ago

I've run into an EXTREMELY frustrating issue that will hopefully be an easy fix.

When using regional control prompts that are several lines long, you need to expand the text area vertically to see this entire prompt - this is normal. However, whenever you press Enter/Return while editing that long prompt (and without changing focus from that text area), the text area size will immediately return to the default size -- this is insanely annoying and makes editing long regional area prompts extremely frustrating.

My suggested fix: text areas should not automatically resize when the user presses the Enter key (or Shift-Enter to create a line break) while editing a prompt and the text area remains in focus.

This occurs on Windows 10, latest Firefox, using LobeHub UI. I've not tested it on other browsers or default Stable Diffusion UI/A1111.