diff --git a/public/scripts/extensions/stable-diffusion/index.js b/public/scripts/extensions/stable-diffusion/index.js index 5b824c56f..a55d5efd0 100644 --- a/public/scripts/extensions/stable-diffusion/index.js +++ b/public/scripts/extensions/stable-diffusion/index.js @@ -708,6 +708,14 @@ function onChatChanged() { $('#sd_character_prompt').val(characterPrompt); $('#sd_character_negative_prompt').val(negativePrompt); $('#sd_character_prompt_share').prop('checked', hasSharedData); + adjustElementScrollHeight(); +} + +function adjustElementScrollHeight(){ + resetScrollHeight($('#sd_prompt_prefix')); + resetScrollHeight($('#sd_negative_prompt')); + resetScrollHeight($('#sd_character_prompt')); + resetScrollHeight($('#sd_character_negative_prompt')); } function onCharacterPromptInput() { diff --git a/public/scripts/extensions/stable-diffusion/settings.html b/public/scripts/extensions/stable-diffusion/settings.html index e1a8846b7..970ec2be8 100644 --- a/public/scripts/extensions/stable-diffusion/settings.html +++ b/public/scripts/extensions/stable-diffusion/settings.html @@ -284,16 +284,16 @@ - + - +