controlkit.js
controlkit.js copied to clipboard
styling issue on select box if you specify a container for the control kit
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] } })
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
will look into it