[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gEDA-dev: Fix for bug #1527465: zoom extents when window ismaximised



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

gschem-configure_event.patch



_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev