Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CLASS to IMG in infobubble.js #323

Open
GoogleCodeExporter opened this issue Jun 3, 2015 · 0 comments
Open

Add CLASS to IMG in infobubble.js #323

GoogleCodeExporter opened this issue Jun 3, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant