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 heightOnly option #56

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

rpaterson
Copy link

No description provided.

@rpaterson
Copy link
Author

Basically the same as #16 with merge conflicts fixed

@@ -99,13 +100,16 @@
originalHeight = innerHeight(el);

// Don't process if we can't find box dimensions
if (!originalWidth || (!settings.widthOnly && !originalHeight)) {
if(!settings.widthOnly)
if ((!settings.heightOnly && !originalWidth) || (!settings.widthOnly && !originalHeight)) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be an added error in case both widthOnly and heightOnly are set

@STRML
Copy link
Owner

STRML commented Dec 2, 2021

Thanks, seems mergeable after a small fix, could you also add to the examples?

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

Successfully merging this pull request may close these issues.

2 participants