Skip to content

Conversation

@arraydude
Copy link
Contributor

Issue: This PR Fixes #590

Description: Fixing height for values container to prevent page walk


Contribution License Agreement

By submiting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@arraydude arraydude requested a review from a team as a code owner November 20, 2019 18:44
@jrhone
Copy link
Contributor

jrhone commented Nov 21, 2019

Options hidden/cutoff when many are selected because input does not expand

Screen Shot 2019-11-21 at 11 32 26 AM

@arraydude
Copy link
Contributor Author

arraydude commented Nov 21, 2019

Options hidden/cutoff when many are selected because input does not expand

Screen Shot 2019-11-21 at 11 32 26 AM

Thanks for the catch @jrhone !, fixed using minHeight instead of height

@arraydude arraydude requested review from jrhone and tvst November 21, 2019 16:15
export const multiSelectOverrides = {
ValueContainer: {
style: () => ({
minHeight: "44px", // Fixing minimum height in order to prevent some changing height
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm... this does fix it, but it feels a bit hacky.

Any idea what is causing BaseWeb to misbehave? I can't repro the bug in the BaseWeb page https://v8-17-1.baseweb.design/components/select/ , but when I remove all theming from widgetTheme.ts, I can still repro the bug. So my guess is our other styles are interfering with BaseWeb. I just can't figure out which styles are to blame.

It would be nice to figure out the source of this bug, so it can be fixed in a more future-proof manner.

If you spend a couple of hours on this and still can't find the underlying cause, feel free to merge this version. But please add a comment explaining whatever you found out, and link it to the original bug.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've tested it using the example from their documentation and it's doing the same, look at this:

Screen Shot 2019-12-03 at 4 31 51 PM

Screen Shot 2019-12-03 at 4 31 59 PM

@arraydude arraydude merged commit f1bec62 into streamlit:develop Dec 3, 2019
@arraydude arraydude deleted the 590/MultiSelectWalksAfterSelecting branch December 3, 2019 21:34
tconkling added a commit to tconkling/streamlit that referenced this pull request Dec 3, 2019
* develop:
  Fix Python tests on Mac (streamlit#786)
  Fixing MultiSelect flaky test (streamlit#719)
  Checking allowed file extensions (streamlit#761)
  Fixing Graphviz tests (streamlit#750)
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.

multiselect box makes the page walk after updating the value

3 participants