Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.

cut icons with box-sizing in css selector * #145

Open
RaidersII opened this issue Mar 24, 2018 · 0 comments
Open

cut icons with box-sizing in css selector * #145

RaidersII opened this issue Mar 24, 2018 · 0 comments

Comments

@RaidersII
Copy link

I have noticed a issue if the css selector '*' have box-sizing: border-box :
image

This is due to the properties of height and padding-top. With the default value of box-sizing (content-box), the height and padding-top/bottom are added, so the expected height of icons is well. But with the value border-box the height icons rendered is only get by the height property (so the icons was cut).
I suggest to add this line to overwrite the property in markerclusterer.js in order to have the expected render :

ClusterIcon.prototype.createCss = function(pos) {
    var style = [];
    var markerClusterer = this.cluster_.getMarkerClusterer();

    if (!markerClusterer.cssClass_) {
        style.push('box-sizing:content-box;');
        style.push('background-image:url(' + this.url_ + ');');
...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant