-
Notifications
You must be signed in to change notification settings - Fork 123
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
possible problem with width/height: 26px definition in .leaflet-bar button:hover style #48
Comments
A better solution might be to use: The use of width/height:100%, proposed earlier, may cause other problems. Note that the issue of buttons not resizing to their content properly may only appear if you use your own styles for the button glyphs which are larger than 26x26 pixels. |
For anyone else facing this problem you can use the following as a work-a-round until the plugin source gets fixed.
Example:
|
thanks for the extra detail, I'll fix this at the beginning of next week! |
Thanks so much!! |
hanginwithdaddo, thank you for this function of resolution. It works like a charm! |
We've recently noticed that with Internet Explorer 11 button sizes are not always sizing properly to match the icon/glyph placed on the button, while Chrome, Firefox, and Safari render the buttons just fine. After a little trial and error, I seem to have narrowed this down to the the use of an explicit size of 26px in the definition of .leaflet-bar button:hover in easy-button.cs. If I change the width/height from 26px to 100%, the problem goes away and the button sizes render fine.
Old, before local change:
.leaflet-bar button,
.leaflet-bar button:hover {
background-color: #fff;
border: none;
border-bottom: 1px solid #ccc;
width: 26px
height: 26px;
line-height: 26px;
display: block;
text-align: center;
text-decoration: none;
color: black;
}
After change:
.leaflet-bar button,
.leaflet-bar button:hover {
background-color: #fff;
border: none;
border-bottom: 1px solid #ccc;
width: 100%;
height: 100%;
line-height: 26px;
display: block;
text-align: center;
text-decoration: none;
color: black;
}
Could someone please review this and see if a change is warranted to easy-button.cs?
Thanks,
Dave
The text was updated successfully, but these errors were encountered: