Skip to content

Calculate text height with max size / WordBreak#1

Open
norbertwg wants to merge 1 commit into
ambiesoft:mainfrom
norbertwg:Calculate-text-height-with-max-size-WordBreak
Open

Calculate text height with max size / WordBreak#1
norbertwg wants to merge 1 commit into
ambiesoft:mainfrom
norbertwg:Calculate-text-height-with-max-size-WordBreak

Conversation

@norbertwg

Copy link
Copy Markdown

Behaviour so far: When width of form is limited and message is too long, message lines are wrapped and scroll bar appears. With this change the width limit and word break is considered when calculating the text height for richTextBoxMessage, so that scrolling is not needed as long as height limit is not exceeded.

magicAdd is removed: seemed to solve a similar problem, but after changing calculation of text height, I could not see a benefit (maybe missed something).

Form1 contains a new button to test this change.

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.

1 participant