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

styling issue on select box if you specify a container for the control kit #24

Open
Jinnified opened this issue Aug 6, 2016 · 2 comments
Labels

Comments

@Jinnified
Copy link

if you specify a parent node for the contrl kit rather than use body, the select box drop down style would be way off.

this.filterControlKit = new ControlKit({
parentDomElementId: 'map1_filterCtrlKit'
})
...

panel.addGroup({label: 'Tile switcher'})
.addSelect(tileSelections, 'options', {
onChange: index=> {
tileSelections.selection = tileSelections.options[index]
}
})

screen shot 2016-08-06 at 23 21 36

@automat automat changed the title styling issue on select box if you specify an container for the control kit styling issue on select box if you specify a container for the control kit Aug 6, 2016
@automat automat added the bug label Aug 6, 2016
@Jinnified
Copy link
Author

just did more dig around, it looks like nothing to do with the parentNode, it's todo with the 'absolute' positioning in css, as long as your css for the control kit is not top 0 right 0 or something like that, the drop down would be off place

@automat
Copy link
Owner

automat commented Aug 6, 2016

will look into it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants