aytee / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

Default line height issue between Firefox and Safari for markercluster text #141

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Demo link or sample code:
{
    url: 'myimage.png',
    height: 50,
    width: 49,
    textColor: '#FFF',
    textSize: 10,
    anchor:[2, 9]
}

What steps will reproduce the problem?
1.  Open map with markerclusterer in Firefox - note correct "Y" axis location 
of text 
2.  Open same map in Chrome / Safari - text is 2px higher up on "Y" axis than 
it was in Firefox.

Expected result:
  Line-heights should be the same.

Actual result:
  Line-heights are different.

Version: ###

Browser / Operating System:
FF / Safari / Chrome

Additional comments:

Fixed with the following changes to manually set and define line height of the 
containing div:

1)  Added option to define line-height on line 260 in markerclusterer plus:

this.lineHeight_ = style.lineHeight || "1em";

2) added output of line height on line 309:

....this.textDecoration_ + '; line-height:' + this.lineHeight_ + ';'

Original issue reported on code.google.com by b.wed...@usingmiles.com on 14 Nov 2011 at 10:31