Skip to content

Commit

Permalink
FIX : It should have been valign, not halign, on HStackedContainer (#780
Browse files Browse the repository at this point in the history
)

this might have been a simple copy-paste mistake.
discovered when working on enthought/chaco#674

	modified:   enable/stacked_container.py
  • Loading branch information
Poruri Sai Rahul authored Apr 19, 2021
1 parent 7bb4c02 commit f379589
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions enable/stacked_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ class HStackedContainer(StackedContainer):
# Overrides StackedPlotContainer.
stack_index = 0

# VPlotContainer attributes
# HPlotContainer attributes

# The horizontal alignment of objects that don't span the full width.
halign = Enum("bottom", "top", "center")
# The vertical alignment of objects that don't span the full height.
valign = Enum("bottom", "top", "center")

# The order in which components in the plot container are laid out.
stack_order = Enum("left_to_right", "right_to_left")
Expand All @@ -67,9 +67,9 @@ def _do_layout(self):
components = self.components
else:
components = self.components[::-1]
if self.halign == "bottom":
if self.valign == "bottom":
align = "min"
elif self.halign == "center":
elif self.valign == "center":
align = "center"
else:
align = "max"
Expand Down

0 comments on commit f379589

Please sign in to comment.