Skip to content

Commit

Permalink
Fix the definition of some contents traits.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwiggins authored and brett-patterson committed Jun 25, 2014
1 parent 048ce64 commit 79fa596
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enable/constraints_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 79fa596

Please sign in to comment.