robertlugg / easygui

easygui for Python
http://easygui.readthedocs.org/en/master/
BSD 3-Clause "New" or "Revised" License
457 stars 116 forks source link

Message height fix #115

Closed spyoungtech closed 5 years ago

spyoungtech commented 7 years ago

Fixed issue where message height is incorrect because of word wrapping. Addresses #114

Not perfect*, but better than the original behavior. There are some cases where extra lines are added, such as when the line length is exactly some multiple (>1) of the width of the messageArea.

For instance, with the default width of 80, a line that's exactly* 160 characters will unnecessarily increase the height by 1

spyoungtech commented 7 years ago

Before patch:

before

With the patch applied, all the text is appropriately shown in the text box.

fixed