From fdb267987b0ab3a6abfc4e1182e8d9776fb8d420 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Sat, 21 Mar 2009 21:38:42 +0000 Subject: [PATCH] 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 --- examples/vector-features.html | 2 +- lib/OpenLayers/Layer.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/vector-features.html b/examples/vector-features.html index 743cd40d09..2df77e7a21 100644 --- a/examples/vector-features.html +++ b/examples/vector-features.html @@ -117,7 +117,7 @@ Shows the use of the shows drawing simple vector features, in different styles.

-
+

This example shows drawing simple vector features -- point, line, polygon diff --git a/lib/OpenLayers/Layer.js b/lib/OpenLayers/Layer.js index e555509c92..c588e5608d 100644 --- a/lib/OpenLayers/Layer.js +++ b/lib/OpenLayers/Layer.js @@ -321,6 +321,7 @@ OpenLayers.Layer = OpenLayers.Class({ this.div = OpenLayers.Util.createDiv(this.id); this.div.style.width = "100%"; this.div.style.height = "100%"; + this.div.dir = "ltr"; this.events = new OpenLayers.Events(this, this.div, this.EVENT_TYPES);