Fixed rendering issues in (vector) layers when map div has dir="rtl"

set. 
r=crschmidt (closes #1778)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@9114 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2009-03-21 21:38:42 +00:00
parent 7130992b16
commit fdb267987b
2 changed files with 2 additions and 1 deletions

View File

@@ -117,7 +117,7 @@
Shows the use of the shows drawing simple vector features, in different styles. Shows the use of the shows drawing simple vector features, in different styles.
</p> </p>
<div style="text-align: right"> <div style="text-align: right">
<div id="map" class="smallmap"></div> <div dir="rtl" id="map" class="smallmap"></div>
</div> </div>
<div id="docs"> <div id="docs">
<p>This example shows drawing simple vector features -- point, line, polygon <p>This example shows drawing simple vector features -- point, line, polygon

View File

@@ -321,6 +321,7 @@ OpenLayers.Layer = OpenLayers.Class({
this.div = OpenLayers.Util.createDiv(this.id); this.div = OpenLayers.Util.createDiv(this.id);
this.div.style.width = "100%"; this.div.style.width = "100%";
this.div.style.height = "100%"; this.div.style.height = "100%";
this.div.dir = "ltr";
this.events = new OpenLayers.Events(this, this.div, this.events = new OpenLayers.Events(this, this.div,
this.EVENT_TYPES); this.EVENT_TYPES);