FIX верстки у длинных картинок с коротким описанием

This commit is contained in:
Krivchikov Dmitry 2014-07-01 19:42:13 +04:00
parent 75fc4e290d
commit f07e03a4a7
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ html {height: 100%;}
body {margin: 0; padding: 0; height: 100%; width: 100%; overflow: hidden;} body {margin: 0; padding: 0; height: 100%; width: 100%; overflow: hidden;}
div#map {width: 100%; position: absolute; top: 0; bottom: 0px;} div#map {width: 100%; position: absolute; top: 0; bottom: 0px;}
body.openBox div#map {right: 250px;} body.openBox div#map {right: 250px;}
div.clear {clear: both;}
div.infoCard h3 {text-align: center; margin-top: 0;} div.infoCard h3 {text-align: center; margin-top: 0;}
div.infoCard img {width: 200px; float: left; margin: 0 10px 5px 0; cursor: pointer;} div.infoCard img {width: 200px; float: left; margin: 0 10px 5px 0; cursor: pointer;}
div.header {display: block; position: absolute; top: 0; left: 110px; border-radius: 0 0 5px 5px; z-index: 1000; background-color: #FFF; padding: 5px 10px;} div.header {display: block; position: absolute; top: 0; left: 110px; border-radius: 0 0 5px 5px; z-index: 1000; background-color: #FFF; padding: 5px 10px;}

View File

@ -183,7 +183,7 @@ function showInfo(id)
if (data.source.length > 11) if (data.source.length > 11)
description = description + ' <a href="' + data.source + '" target="blank">Подробнее...</a>'; description = description + ' <a href="' + data.source + '" target="blank">Подробнее...</a>';
description = description + '</div>'; description = description + '</div><div class="clear"></div>';
marker.options.description = description; marker.options.description = description;
marker.bindPopup(marker.options.description, {maxWidth: 500, maxHeight: 300}).openPopup(); marker.bindPopup(marker.options.description, {maxWidth: 500, maxHeight: 300}).openPopup();