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

Bug with Bootstrap's Open Dropdown Menu #164

Open
michael-ecklund opened this issue May 3, 2017 · 1 comment
Open

Bug with Bootstrap's Open Dropdown Menu #164

michael-ecklund opened this issue May 3, 2017 · 1 comment

Comments

@michael-ecklund
Copy link

In Bootstrap, it seems to only scale the font size if the menu is opened. If it's closed, there's no font scaling happening. (This is probably intended functionality -- because the items aren't visible).

I'd like to note two things:

  1. On initial page load, it isn't setting a font size to these list items in the dropdown. (Probably because it's closed and they're not visible).

  2. If a dropdown menu is "opened", the font is continuously enlarged on screen resize.

I haven't tested yet, but I would assume this true for all dynamically hidden/visible items on a page.

I love this script, but I also love using Bootstrap. It would be nice if it integrated well with Bootstrap's concepts.

@michael-ecklund
Copy link
Author

For what it's worth, I set a JS event to know when the parent menu item was done setting font-size (using your script), then on that event... Set the font-size for the items in the dropdown menu (not using your script). So I got it working, but it was just an extra step. I wish I could have just applied a simple function call using your script to the dropdown items as well.

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

No branches or pull requests

1 participant