plotdf window picture slowly moves to the right when resizing window

Bug #1670197 reported by themusicgod1
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maxima (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

1) load("plotdf");
2) plotdf(x,[x,-1,1],[y,-1,1]);
3) grab the bottom right edge of the window, and drag it larger
4) grab bottom right edge of window and drag it smaller

when you move it larger, the picture within slowly slides right
when you move it smaller, the picture within does not slide left to compensate
and there is no scrollbars or anything within the window to 'recenter' to the origin of the graph
even hitting the 'refresh' icon redraws the graph off screen instead of in the middle of the currently visible area.

environment: xmaxima on xfce4, on ubuntu/xorg:

xmaxima:
  Installed: 5.37.2-8
  Candidate: 5.37.2-8
  Version table:
 *** 5.37.2-8 500
        500 http://archive.ubuntu.com/ubuntu yakkety/universe amd64 Packages
        100 /var/lib/dpkg/status

maxima:
  Installed: 5.37.2-8
  Candidate: 5.37.2-8
  Version table:
 *** 5.37.2-8 500
        500 http://archive.ubuntu.com/ubuntu yakkety/universe amd64 Packages
        100 /var/lib/dpkg/status

xfce4:
  Installed: 4.12.3
  Candidate: 4.12.3
  Version table:
 *** 4.12.3 500
        500 http://archive.ubuntu.com/ubuntu yakkety/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu yakkety/universe i386 Packages
        100 /var/lib/dpkg/status

xserver-xorg:
  Installed: 1:7.7+13ubuntu4
  Candidate: 1:7.7+13ubuntu4
  Version table:
 *** 1:7.7+13ubuntu4 500
        500 http://archive.ubuntu.com/ubuntu yakkety/main amd64 Packages
        100 /var/lib/dpkg/status

Ubuntu: 16.10 yakkety

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: xmaxima 5.37.2-8
ProcVersionSignature: Ubuntu 4.8.0-39.42-generic 4.8.17
Uname: Linux 4.8.0-39-generic x86_64
ApportVersion: 2.20.3-0ubuntu8.2
Architecture: amd64
CurrentDesktop: XFCE
Date: Sun Mar 5 15:55:52 2017
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-07-09 (970 days ago)
InstallationMedia: Ubuntu-GNOME 14.10 "Utopic Unicorn" - Alpha amd64 (20140708)
SourcePackage: maxima
UpgradeStatus: Upgraded to yakkety on 2016-10-16 (140 days ago)

Revision history for this message
themusicgod1 (themusicgod1) wrote :
tags: added: zesty
Revision history for this message
themusicgod1 (themusicgod1) wrote :

This patch fixes the issue as reported. There's a lot of little weird behaviours that plotdf still has and hopefully this doesn't introduce anything more, but as far as my problems are concerned it solves them. The graph is a little skewed when you move it - but no more skewed than you'd normally get and the skew is a graph-preserving/affine(?) transformation.

Whereas before this patch, what would happen is you would eventually lose your graph entirely* by resizing, effectively limiting the size a graph could be even on a fairly high resolution monitor (since to get to the interesting bits would involve resizing and zooming, this allows you to zoom in and zoom out, but resizing your window would normally lose you your graph in short order)

It still behaves a little weird in some cases - fullscreening the window & making the window size 0 can still skew the graph but the good news is that no matter what you do with it, by hitting refresh you get your graph back, right where you can see it. Whereas before you'd get your graph back, maybe, somewhere far off the screen where it isn't useful*.

(*I learned while finding this that if you click right mouse button and drag you can also
move the graph, which is overly sensitive to mouse movements but that's another story)

Revision history for this message
themusicgod1 (themusicgod1) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "centre screen in the correct place during changing of window geometry" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
PeterPall (peterpall) wrote :

I have upstreamed your patch => The next maxima version will no more have this problem. But I don't know how to fix the problem for the version that is currently shipped with ubuntu.

Revision history for this message
themusicgod1 (themusicgod1) wrote :

I see the commit upstream now, https://sourceforge.net/p/maxima/code/ci/091a93806f93f12a2a29fa1acbc33f9d33141f3b/
How would probably go to Camm Maguire to decide to put a patch in artful or all ubuntu versions or none & wait until upstream gets deployed since I'm the only one who's brought this up & I've already got the fix.

Changed in maxima (Ubuntu):
status: New → Fix Committed
Changed in maxima (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.