larrypham / 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

Add CLASS to IMG in infobubble.js #323

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Demo link or sample code:
http://sunnyworthing.org.uk/whats-on-in-worthing

What steps will reproduce the problem?
1. Click on a marker
2. The Close img width which is meant to be 12px is being over ridden by 
another, more important, css class.

Expected result:
Close image should be displayed at 12px, but is displayed at 100%

Actual result:
I would like this to be displayed at 12px and am trying to find out how to add 
a class to the infobubble.js or add !important to the style in the js.

Additional comments:
In infobubble.js, this code is used to display the image:
// Close button
    var close = this.close_ = document.createElement('IMG');
    close.style['position'] = 'absolute';
    close.style['width'] = this.px(12);
    close.style['height'] = this.px(12);
    close.style['border'] = 0;
    close.style['zIndex'] = this.baseZIndex_ + 1;
    close.style['cursor'] = 'pointer';
    close.src = 'https://maps.gstatic.com/intl/en_us/mapfiles/iw_close.gif';

Is is possible to add a class to IMG or add !important to the width style?

Thank you

Original issue reported on code.google.com by simon.k2...@gmail.com on 5 Sep 2014 at 8:06