Weird resizing issue

Tommy Grav <tgrav@...935...> writes:

The window resizes horisontally when the pointer is inside the
window, although the window behaves erratically as it resizes.
Moving the pointer to the right will cause the window to grow then
reduce size as you go further right.

Is this related to the pointer coordinates shown in the lower-right
corner of the window? I.e., when you move the pointer right, perhaps
the x-coordinate becomes a longer number and the window is enlarged to
accommodate it. I remember seeing behavior like this on some old
version of Matplotlib (probably TkAgg backend on OS X) but cannot
reproduce it now.

···

--
Jouni

That looks like the problem. If you click the zoom widget in qt4agg,
then "zoom to rect mode" also appears on that line, forcing the width of the
window to increase even further.

···

On Monday 24 July 2006 15:12, Jouni K Seppanen wrote:

Tommy Grav <tgrav@...935...> writes:
> The window resizes horisontally when the pointer is inside the
> window, although the window behaves erratically as it resizes.
> Moving the pointer to the right will cause the window to grow then
> reduce size as you go further right.

Is this related to the pointer coordinates shown in the lower-right
corner of the window? I.e., when you move the pointer right, perhaps
the x-coordinate becomes a longer number and the window is enlarged to
accommodate it. I remember seeing behavior like this on some old
version of Matplotlib (probably TkAgg backend on OS X) but cannot
reproduce it now.

I fixed this problem for the qt backends. The coordinates of the cursor are
rendered in a label, and the resize policy of the label needs to be set so it
doesnt try to grow to accomodate the long string.

Darren

···

On Monday 24 July 2006 15:12, Jouni K Seppanen wrote:

Tommy Grav <tgrav@...935...> writes:
> The window resizes horisontally when the pointer is inside the
> window, although the window behaves erratically as it resizes.
> Moving the pointer to the right will cause the window to grow then
> reduce size as you go further right.

Is this related to the pointer coordinates shown in the lower-right
corner of the window? I.e., when you move the pointer right, perhaps
the x-coordinate becomes a longer number and the window is enlarged to
accommodate it. I remember seeing behavior like this on some old
version of Matplotlib (probably TkAgg backend on OS X) but cannot
reproduce it now.

This was the problem. I fixed it in the qt backends by setting the label's
resize policy to ignore the sizing hints.

(I'm sorry if this is the second time this message gets posted.)

···

On Monday 24 July 2006 15:12, Jouni K Seppanen wrote:

Tommy Grav <tgrav@...935...> writes:
> The window resizes horisontally when the pointer is inside the
> window, although the window behaves erratically as it resizes.
> Moving the pointer to the right will cause the window to grow then
> reduce size as you go further right.

Is this related to the pointer coordinates shown in the lower-right
corner of the window? I.e., when you move the pointer right, perhaps
the x-coordinate becomes a longer number and the window is enlarged to
accommodate it. I remember seeing behavior like this on some old
version of Matplotlib (probably TkAgg backend on OS X) but cannot
reproduce it now.