Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed incorrect runs-selector rendering #2333

Merged
merged 1 commit into from
Jun 7, 2019

Conversation

stephanwlee
Copy link
Contributor

Nature of the bug:
Sidebar tf-runs-selector is a bit trickier in term of layout: its height
depends both on number/size of the content (# of runs) and size of the
viewport (show scrollbar if it does not fit in the sidebar).

To confine the size of the tf-runs-selector w.r.t the height of its
container (whose height is not defined by content but its sibling sizes
which are computed by respective descendents), we need to make each flex
container overflow: hidden. overflow: hidden makes child and
child-flex-container compute height w.r.t, the flex-container with
overflow: hidden.

When run numbers are low, we make tf-runs-selector's height computed
w.r.t. descendent heights by not putting height: 100%.

Confirmed the change both on Chrome 75 and Firefox 66.

Nature of the bug:
Sidebar tf-runs-selector is a bit trickier in term of layout: its height
depends both on number/size of the content (# of runs) and size of the
viewport (show scrollbar if it does not fit in the sidebar).

To confine the size of the tf-runs-selector w.r.t the height of its
container (whose height is not defined by content but its sibling sizes
which are computed by respective descendents), we need to make each flex
container `overflow: hidden`. `overflow: hidden` makes child and
child-flex-container compute height w.r.t, the flex-container with
`overflow: hidden`.

When run numbers are low, we make tf-runs-selector's height computed
w.r.t. descendent heights by not putting `height: 100%`.

Confirmed the change both on Chrome 75 and Firefox 66.
@stephanwlee stephanwlee requested a review from nfelt June 7, 2019 21:52
Copy link
Contributor

@nfelt nfelt left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

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