Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorAgustin Zubiaga <aguzubiaga97@gmail.com>2012-02-06 02:53:25 (GMT)
committer Agustin Zubiaga <aguzubiaga97@gmail.com>2012-02-06 02:53:25 (GMT)
commita996d8041b88673fb221fdbf5c1e7cba9993b79c (patch)
treeb8380f624de3177eb704daa7dce54a853ef8fb4e /activity.py
parent0670dd9c85fd31d4700b12cc3ec9f3558c850b83 (diff)
Chart resize simplified
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py8
1 files changed, 3 insertions, 5 deletions
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