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

issue on resize browser with fluid layout #60

Closed
pdewouters opened this issue Apr 19, 2012 · 2 comments
Closed

issue on resize browser with fluid layout #60

pdewouters opened this issue Apr 19, 2012 · 2 comments

Comments

@pdewouters
Copy link

I incorporated dropkick into a responsive / fluid layout
when the browser window is narrow enough, the container is set to display block to reveal the dropdown select. But the width of the dropdown select is not wide enough. It's as wide as the first item (home), but should be as wide as the largest element, so the dropdown is truncated and a horizontal scrollbar appears

@pdewouters
Copy link
Author

I achieved the desired behaviour :

In the javascript, replace this line
'width' : width + 'px'
with 'width': '100%'

add this
.dk_container {

width: 100%;

Add this to dk_toggle:
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
width: 100%;

@joshjacobson
Copy link

Would this allow for each dropdown to be specified its own width 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

3 participants