My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 321: Incorrect width calculated in MTTextArea
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  txprog
Closed:  Aug 2010


 
Reported by jgoss...@gmail.com, Aug 17, 2010
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 17, 2010
Project Member #1 txprog
(No comment was entered for this change.)
Status: Accepted
Owner: txprog
Labels: Milestone-0.5.1
Aug 19, 2010
Project Member #2 txprog
Merged
Status: Done

Powered by Google Project Hosting