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

Add autoWidth default #166

Closed
wants to merge 1 commit into from
Closed

Conversation

morsecoding
Copy link
Contributor

Added autoWidth property to the defaults. This will allow for more granular control of the menu width. In particular when using percentage widths such as in responsive layouts. Utilizing inner options to set list items to overflow:hidden, whitespace:nowrap and text-overflow:ellipse works great to address longer items when the menu is too narrow.

Added autoWidth property to the defaults. This will allow for more granular control of the menu width. In particular when using percentage widths such as in responsive layouts. Utilizing inner options to set list items to overflow:hidden and/or whitespace:nowrap may be desirable as a solution when side scrolling is not desired and the items are wider than menu width.
@morsecoding
Copy link
Contributor Author

I was having difficulty getting dk to size the menus in the manner I desired. I have three menus placed horizontally on my page in a responsive layout. This seemed like the correct place to "turn off" the auto width feature that sizes the entire menu to the longest item in the list.

@Robdel12
Copy link
Owner

Merged into version 1.4 👍

@Robdel12 Robdel12 closed this Jan 12, 2014
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