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

Padding causes plugin to miscalculate width for some elements #141

Closed
MaisonDeVolonte opened this issue Sep 20, 2020 · 2 comments
Closed

Comments

@MaisonDeVolonte
Copy link

MaisonDeVolonte commented Sep 20, 2020

Expected Behaviour

Plugin should calculate width of elements including margin/padding

Actual Behaviour

calculates it slightly wider than the actual size

Workaround

wrapping the inner text in a span works

Example

Screen Shot 2020-09-19 at 5 43 35 PM

@MaisonDeVolonte
Copy link
Author

Nevermind [facepalm] I didn't see the recommendation by @egbit in #75 - sorry about that.

The css padding in my list items was causing the plugin to miscalculate. After wrapping the inner text with a span the plugin was able to work perfectly.

@MaisonDeVolonte MaisonDeVolonte changed the title Plugin balances text but calculates width incorrectly (regardless of html structure and/or css) Padding causes plugin to miscalculate width for some elements Sep 20, 2020
@redmunds
Copy link
Contributor

@MaisonDeVolonte Thank you for followup information.

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

No branches or pull requests

2 participants