From 79fa596cf1f0891ffbdd4f54cf0f65ceae718957 Mon Sep 17 00:00:00 2001 From: John Wiggins Date: Fri, 15 Feb 2013 09:45:05 -0600 Subject: [PATCH] Fix the definition of some contents traits. --- enable/constraints_container.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enable/constraints_container.py b/enable/constraints_container.py index 55e817a28..fba794253 100644 --- a/enable/constraints_container.py +++ b/enable/constraints_container.py @@ -176,8 +176,8 @@ def _content_box_constraints(self): # Add these to the namespace, but don't use them cns.contents_width = contents_right - contents_left - cns.contents_height = contents_bottom - contents_top - cns.contents_v_center = contents_top + cns.contents_height / 2.0 + cns.contents_height = contents_top - contents_bottom + cns.contents_v_center = contents_bottom + cns.contents_height / 2.0 cns.contents_h_center = contents_left + cns.contents_width / 2.0 return [contents_left == cns.left + self.padding_left,