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,