Re: [PATCH] add graph window



Le mercredi 02 novembre 2005 à 15:42 +0100, Christian Neumair a écrit :
4

+                    w->zoom_factor > 1.0 ?
+                    w->height < w->width * w->aspect_ratio :
+                    w->height > w->width * w->aspect_ratio))

is a bit fishy. However, I supposed that if one has an aspect ratio of
1.0, he expects the widget to scale like in the pie-demo. If the aspect
ratio is bigger, and no explicit reference direction is set, I use the
(relative) longer dimension, since using the shorter causes issues where
scrolling takes place with a hoffset/voffset != 0, which looks ugly.

5

the graph size in the window is wrong compared to the sheet object graph
size, it seems like by a constant factor

It's probably a DPI issue. Please note that gog_graph_get_size returns
graph size in point unit (1/72 inch).

        Emmanuel.




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