gEDA-dev: Fix for bug #1527465: zoom extents when window is
maximised
Patrick Bernaud
b-patrick at wanadoo.fr
Tue Oct 3 17:45:00 EDT 2006
Hi Carlos,
There are two problems with your fix for bug #1527465:
- first it only pans correctly for the first page of the toplevel:
you have to compute cx and cy for each page.
- it forces a zoom_extents when maximizing the window. The user may
have zoomed in the page to accomodate a particular area and when
you maximize the window you loose the zoom level and your area of
interest. It can be quite irritating.
So I am proposing another fix that changes the zoom level of every
page to best fit the previous view in the new area (in addition to
panning correctly). As a bonus it does not affect libgeda and does not
rely on the window-state event.
Note that it only works when maximizing the window, i.e. not when you
resize it and not when you de-maximize it.
Regards,
Patrick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gschem-configure_event.patch
Type: application/octet-stream
Size: 13097 bytes
Desc: not available
Url : http://www.seul.org/pipermail/geda-dev/attachments/20061003/d4f30cff/gschem-configure_event.obj
More information about the geda-dev
mailing list