patch to make sure main openlayers map div has neither padding nor margin. done via css thanks to tim's fabulous new class manip patch. r=cr5 (Closes #1179)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7584 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2008-07-29 14:52:48 +00:00
parent 357d65955a
commit 2fb730674a
4 changed files with 17 additions and 5 deletions

View File

@@ -404,6 +404,7 @@ OpenLayers.Map = OpenLayers.Class({
this.id = OpenLayers.Util.createUniqueID("OpenLayers.Map_");
this.div = OpenLayers.Util.getElement(div);
OpenLayers.Element.addClass(this.div, 'olMap');
// the viewPortDiv is the outermost div we modify
var id = this.div.id + "_OpenLayers_ViewPort";