From a4a6bbcd90391be006c9f528ebcc93f77cba17d2 Mon Sep 17 00:00:00 2001 From: csete Date: Sun, 28 Dec 2008 16:01:24 +0000 Subject: [PATCH] Update canvas bounds when resizing the canvas. git-svn-id: https://gpredict.svn.sourceforge.net/svnroot/gpredict/trunk@190 ab6734ba-2843-0410-b83b-99c217ef6c0f --- src/gtk-polar-plot.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gtk-polar-plot.c b/src/gtk-polar-plot.c index 4bd53db..08614a5 100644 --- a/src/gtk-polar-plot.c +++ b/src/gtk-polar-plot.c @@ -781,6 +781,10 @@ size_allocate_cb (GtkWidget *widget, GtkAllocation *allocation, gpointer data) polv->cx = allocation->width / 2; polv->cy = allocation->height / 2; + goo_canvas_set_bounds (GOO_CANVAS (GTK_POLAR_PLOT (polv)->canvas), 0, 0, + allocation->width, allocation->height); + + /* update coordinate system */ g_object_set (polv->C00, "center-x", (gdouble) polv->cx,