Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

Fixed bug with height in horizontal mode #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fluffy88
Copy link

When a TwoWayView is set to horizontal mode and is using layout_height="wrap_content"
the view consumes all available space on the screen. Essentially ignoring the wrap_content flag.

When in wrap_content mode the view should only take up the necessary space to show it's contents.

This is the same bug as described in issue #22
Issues #35 and #63 maybe related to this change.

This change will in-effect make TwoWayView deal with wrap_content correctly.
It will set it's height to the height of it's largest child in horizontal mode.
And in vertical mode it will set the width to the width of the widest child.

When TwoWayView is set to horizontal mode and layout_height="wrap_content"
the view would consume all available space on the screen. Esentially
ignoring the wrap_content flag.
When in wrap_content mode the view should only take up the nessecary
space to show it's contents.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant