-
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
Easy Button (easy-button-button dimension edits) #42
base: master
Are you sure you want to change the base?
Easy Button (easy-button-button dimension edits) #42
Conversation
…iece it was causing icons to float against the upper edge of the button. By removing the width and height from the easy-button-button class I was able to produce the desired behavior.
I'll take a look at in the next day or so, but in the meantime, do you have any more info on how you were using it? Were you supplying the plain icon string, were you using EasyButtons's states, were you using any other css libs? Adding the css for EasyButton came about kind of late in the more recent rewrite and it was mostly based off the core Leaflet css; it almost certainly could be improved upon. Thanks for the pr! |
Cliff, Thanks for getting back to me. I will prepare something later today or I was using the easy button as part of a geo spatial Bootcamp we ran for a I'll be in touch, Ryan On Thursday, May 19, 2016, atstp notifications@github.com wrote:
Ryan Withers http://www.linkedin.com/in/ryanwithers |
Hi Cliff, I have an example worked up now that shows the problem and my proposed https://github.com/rwithers/leaflet-easy-button-example.git I have checked-in the changes that I think represent an okay fix. You can I'll look forward to hearing from you. Sorry it took so long. Ryan On Thu, May 19, 2016 at 2:04 AM, atstp notifications@github.com wrote:
Ryan Withers http://www.linkedin.com/in/ryanwithers |
This looks great so far! I'll take a proper look at it tomorrow morning and get back to you 👍 |
Sorry, this issue slipped through the cracks. It's back on my radar. |
That's okay it's nothing I need for a production deploy and we are running Thanks, Ryan On Wednesday, June 29, 2016, atstp notifications@github.com wrote:
Ryan Withers http://www.linkedin.com/in/ryanwithers |
My goal was to get the easy button to center a button icon within the boundaries of the button. That proved difficult and I felt it should be default behavior. I am very willing to discuss this at a later date or time, as I'm probably doing something wrong.
A more detailed explanation:
I Removed the width and height from the easy button button. At 100% a piece it was causing icons to float against the upper edge of the button. By removing the width and height from the easy-button-button class I was able to produce the desired behavior.
I would love to hear from you at your convenience. Thanks for considering this request.