OpenLayers OpenLayers

Ticket #1116 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

In IE7 Google layer doesn't work in parent <div> with right align

Reported by: openlayers Assigned to: euzuro
Priority: critical Milestone: 2.7 Release
Component: Layer.Google Version: 2.5
Keywords: Cc: wonder.sk@gmail.com
State: Complete

Description

If openlayers map is wrapped inside a div which has style "text-align:right" goole maps layer will not get displayed.

How to reproduce it:

<div style="text-align:right"> <div id="map"></div> </div>

  • in IE7 layer from google maps won't be displayed

Attachments

textAlign-left.patch (351 bytes) - added by euzuro on 07/28/08 15:05:22.
instead of overriding the text align on the layer div, we override it on the viewport div (its parent)

Change History

07/04/08 02:13:46 changed by euzuro

  • state changed.
  • milestone set to 2.7 Release.

it seems like I've seen this sort of bug reported more than once. didn't steve lime just post something about issues with vectors when OL is in a table cell with text-align: center, or something like that?

there may very well be no good solution to this problem, but at the very least we should put a warning and make sure this documentation is easy to find on the website.

I'm moving this to 2.7 to see if it spurrs interest/action.

07/28/08 11:29:25 changed by crschmidt

  • priority changed from minor to critical.

07/28/08 15:05:22 changed by euzuro

  • attachment textAlign-left.patch added.

instead of overriding the text align on the layer div, we override it on the viewport div (its parent)

07/28/08 15:24:11 changed by crschmidt

  • state set to Commit.

Looks good. Please commit.

07/28/08 15:34:11 changed by euzuro

  • status changed from new to assigned.

tests pass on ff2, ie7*. please to review

* with the exception of the layer/multimap test, which is failing across the board

07/28/08 15:40:28 changed by euzuro

  • status changed from assigned to closed.
  • state changed from Commit to Complete.
  • resolution set to fixed.

(In [7576]) Fixes the issue where a container div around the map is setting the text-align to something other than 'left'. for openlayers to work, the text-align for the viewport *must* be set to 'left', so we specify that in the default style.css. (Closes #1116)