| Issue 321: | Incorrect width calculated in MTTextArea | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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.
Aug 19, 2010
Merged
Status:
Done
|
Owner: txprog
Labels: Milestone-0.5.1