From a996d8041b88673fb221fdbf5c1e7cba9993b79c Mon Sep 17 00:00:00 2001 From: Agustin Zubiaga Date: Mon, 06 Feb 2012 02:53:25 +0000 Subject: Chart resize simplified --- (limited to 'activity.py') diff --git a/activity.py b/activity.py index 2bdc71d..33b25dc 100644 --- a/activity.py +++ b/activity.py @@ -338,12 +338,10 @@ class SimpleGraph(activity.Activity): new_height = h if not fullscreen: - bx, by, bw, bh = self.box.get_allocation() + sx, sy, width, height = self.charts_area.get_allocation() - surface_max_height = self.charts_area.get_allocation().height - - new_width = w - bw - 40 - new_height = surface_max_height - 40 + new_width = width - 40 + new_height = height - 40 self.current_chart.width = new_width self.current_chart.height = new_height -- cgit v0.9.1