FIX прокрутка с точками маршрута

This commit is contained in:
Krivchikov Dmitry 2014-06-01 12:36:04 +04:00
parent 22b4b67f75
commit 085988dfdc
2 changed files with 7 additions and 2 deletions

View File

@ -1,8 +1,10 @@
<div id="map"></div>
<div id="routeWindow" class="popover fade in" style="display: none; position: absolute; top: 50px; right: 7px; left: auto; max-width: none;">
<div id="routeWindow" class="popover fade in">
<h3 class="popover-title">Мой маршрут <b id="routeDistance"></b></h3>
<div class="popover-content">
<div id="wayPoints"></div>
</div>
<div class="buttons" style="padding: 3px 14px;">
<button class="btn btn-default" type="button" onclick="$('#routeWindow').toggle(200)">Скрыть</button>
<?php if ($user): ?>
<button class="btn btn-default" onclick="saveRoute()"><span class="glyphicon glyphicon-cloud-upload"></span> Сохранить</button>

View File

@ -27,6 +27,9 @@ div#footer table{}
#wayPoints .wayPoint {cursor: pointer; border: solid 1px #999; padding: 2px 5px; margin-bottom: 3px;}
#wayPoints .wayPoint span {font-weight: bold; color: red;}
#routes {margin-bottom: 10px;}
#routeWindow {display: none;position: absolute; top: 35px; right: 7px; left: auto; max-width: 320px; width: 320px; bottom: 55px;}
#routeWindow .popover-content {overflow-y: scroll; bottom: 45px; position: absolute; top: 36px;}
#routeWindow .buttons {bottom: 3px; position: absolute;}
#routes {margin-bottom: 10px; height: 200px; background-color: #ff9999;}
#routes .route {cursor: pointer; border: solid 1px #999; padding: 2px 5px; margin-bottom: 3px;}
#routes .route span {font-weight: bold; color: red;}