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

Carlos Nieves Ónega cnieves.mail at gmail.com
Wed Oct 4 15:11:10 EDT 2006


Hi Patrick,
I commited these valuable changes into CVS. Thank you for looking at
this.

Regards,

Carlos

El mar, 03-10-2006 a las 23:45 +0200, Patrick Bernaud escribió:
> 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
> 
> 
> _______________________________________________
> geda-dev mailing list
> geda-dev at moria.seul.org
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev



More information about the geda-dev mailing list