yakra / tmtools

Tools to aid in development of the TravelMapping project
0 stars 0 forks source link

tmg2html: InfoBox positioning #74

Closed yakra closed 5 years ago

yakra commented 5 years ago

TCHMai@318&TCHWin@42&MB1@318&MB100@42&MB101@42&Rte85@MB100/101 is too long to fit within default width to the right of the canvas. Clicking here makes the InfoBox div appear below the canvas instead.

yakra commented 5 years ago

Compare US129@US129/441BusWat_N&US129BusWat@US129_N&US441@US129/441BusWat_N&US441BusWat@US441_N&GA15@US129/441&GA24@US129/441BusWat_N&GA24BusWat@GA24_N ...

Firefox splits the longer label across 3 lines, and the InfoBox stays in place. The shorter label is just short enough to not end up splitting the lines, resulting in text that's just long enough on one line to foul up the InfoBox width, repositioning it.

Chrome and Chromium don't split up the loner label, and just reposition the InfoBox.

yakra commented 5 years ago

2846f74d28467d67e9ab77769f4f58ec5da2c115