What steps will reproduce the problem?
1. gui.TextArea(width=100, height=100).resize(width=200, height=200)
What is the expected output? What do you see instead?
I would expect the text area to resize, but it does not.
When using the "ta.rect.w, ta.rect.h = ta.resize()" thing occasionally observed
in pgu, the widget appears to change size, but the widget is not aware of it
(not surprised here).
What version of the product are you using? On what operating system?
pgu svn r41. Debian GNU/Linux Wheezy. Though the problem is almost certainly
OS independent as the code for resizing the TextArea is the same as Widget (the
latter ignores its input parameters).
Please provide any additional information below.
I have attached a small demo script to show the issue. When clicking on the
resize button, the widget is supposed to resize to 400x100 (from 150x100). I
used the "ta.rect.w, ta.rect.h = ta.resize()" to force the widget to resize.
This causes the text to become unreadable (see pgu-text-area-resize-b.png). If
that line is removed, the widget simply refuses to change its size (remaining
in the state shown in pgu-text-area-resize-a.png)
Original issue reported on code.google.com by NThykier@gmail.com on 7 Dec 2012 at 1:46
Original issue reported on code.google.com by
NThykier@gmail.com
on 7 Dec 2012 at 1:46Attachments: