Skip to content

max_lines + autoheight for textbox#1153

Merged
pngwn merged 4 commits into
mainfrom
980-autoheight
May 3, 2022
Merged

max_lines + autoheight for textbox#1153
pngwn merged 4 commits into
mainfrom
980-autoheight

Conversation

@pngwn
Copy link
Copy Markdown
Member

@pngwn pngwn commented May 3, 2022

  • implement max_lines
  • fix autoheight bug
  • cleanup

Closes #980. Related #1053.

@pngwn pngwn mentioned this pull request May 3, 2022
31 tasks
@pngwn pngwn requested a review from abidlabs May 3, 2022 14:41
@pngwn pngwn changed the title 980 autoheight max_lines + autoheight for textbox May 3, 2022
@abidlabs
Copy link
Copy Markdown
Member

abidlabs commented May 3, 2022

Looks good! One thing I noticed is that if a Textbox is used as an output (or generally has interactive=False), then there is no way to scroll the textbox if the text inside exceeds the max_lines amount

@pngwn
Copy link
Copy Markdown
Member Author

pngwn commented May 3, 2022

Ah good point. I'll have a think about that, we may be better off reverting to using a plain div rather than a disabled textbox for static output.

@pngwn pngwn merged commit e34210c into main May 3, 2022
@pngwn pngwn deleted the 980-autoheight branch May 3, 2022 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Textbox Autoheight Logic

2 participants