Skip to content

Fix alignment trait on "HStackedContainer"#780

Merged
rahulporuri merged 1 commit into
masterfrom
fix/layout-bugs-hstacked-container
Apr 19, 2021
Merged

Fix alignment trait on "HStackedContainer"#780
rahulporuri merged 1 commit into
masterfrom
fix/layout-bugs-hstacked-container

Conversation

@rahulporuri
Copy link
Copy Markdown
Contributor

This PR fixes the alignment trait and _do_layout method on the HStackedContainer. This might have been a simple copy-paste mistake. This was discovered when working on enthought/chaco#674.

This PR simply renames the halign triat with valign and updates its usage in the _do_layout method. See related https://github.com/enthought/chaco/blob/a88b7b96a981dc96ad9f0d615c21d699f93851d1/chaco/plot_containers.py#L289-L324, which is possibly where the HStackedContainer class originated.

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

	modified:   enable/stacked_container.py
Copy link
Copy Markdown
Contributor

@aaronayres35 aaronayres35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rahulporuri rahulporuri merged commit f379589 into master Apr 19, 2021
@rahulporuri rahulporuri deleted the fix/layout-bugs-hstacked-container branch April 19, 2021 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants