mansrz / pymt

Automatically exported from code.google.com/p/pymt
0 stars 0 forks source link

Incorrect width calculated in MTTextArea #321

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start by adding any string to the widget when 'autosize' or 'autowidth' has 
been specified.
2. Replace the entire string with '\n' or ''
3. Check the reported width.

What is the expected output? What do you see instead?
The width of the string should be reported as 1.0 but it is reported as the 
maximum width of any line in the previous string. This happens because 
'recalc_size' does not recalculate the width if the first or only line in the 
string is empty

What version of the product are you using? On what operating system?
v0.5.1-dev running on Ubuntu 10.04

Please provide any additional information below.
Pushed to jfgossage/pymt on branch WidthError. Pick up HEAD to get the patch.

Original issue reported on code.google.com by jgoss...@gmail.com on 17 Aug 2010 at 6:47

GoogleCodeExporter commented 9 years ago

Original comment by txprog on 17 Aug 2010 at 7:30

GoogleCodeExporter commented 9 years ago
Merged

Original comment by txprog on 19 Aug 2010 at 3:49