Closed amyleew closed 9 years ago
On this http://amyleew.github.io/osrm-frontend/ I'm trying to get the control box
separate from the routing instructions
like on my http://amyleew.github.io/lrm/ version within the npm install
.
Discussed offline with @amyleew. It looks like the parent container (right sidebar) has it's container set overflow:auto
which prevented the fixed positioned geocoding container from appearing.
Ideally, the geocoding container is never contained within that sidebar and appended to the map element independently. Looking at http://www.liedman.net/leaflet-routing-machine/api/ it doesn't look like its really possible to do.
@tristen - I was able to successfully sever the geocoder input for the direction instructions... leaflet-routing-alternatives-container and .osrm-directions-inputs had the same styling
However now I can't control the overflow: auto
so I can scroll longer routing instructions. Try to replace in the parent container and the direction instructions classes but no luck. Am I missing something?
You'll want to give its parent container overflow of auto and a height of 100%. Make sure there isn't any weird positioning rules applied to it.
Yes!! height: 100%;
thanks! Fixed https://github.com/amyleew/osrm-frontend/commit/b5b9936a731992f5a6d2d1ab2b23f595f3507ad2
@tristen - Having trouble identifying where my
control box
is connected to therouting instructions
but they are clearly connected.How can I best trouble-shoot this?