Fix the dreaded resize bug so that the map recenters automatically when relatively-sized map divs change size.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1174 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Schuyler Erle
2006-08-09 21:17:06 +00:00
parent 1b26e9cb69
commit d76e18ac65
2 changed files with 18 additions and 6 deletions

View File

@@ -1,10 +1,10 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<html xmlns="http://www.w3.org/1999/xhtml" style="width:100%">
<head>
<script src="../lib/OpenLayers.js"></script>
</head>
<body>
<body style="width:100%">
<div style="width:100%; height:500px" id="map"></div>
<script defer="defer" type="text/javascript">
var map = new OpenLayers.Map('map');