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
Fix viewport.applyContraints (#833) #846
Conversation
Found a fix. There is obviously matter for discussion :) |
return this; | ||
}, | ||
|
||
/** | ||
* Updates the viewport's home bounds and constraints. | ||
* Updates the viewport's content bounds and constraints. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My preference for deprecated functions is to remove their doc comments entirely. Just replace with:
// deprecated
...or some such.
It's a lot of changes, but most of it is code clean up. All seems reasonable to me. What were you thinking should be discussed? For that matter, could you describe what the issue was and how you fixed it? Also, since there are deprecations, maybe it makes sense for you to write the changelog for this one, calling out the items that were deprecated. |
The issue was that _applyBoundaryConstraints was using the rotated content bounds instead of the non-rotated one.
Sure, will do. |
Awesome, thanks for the explanations!
Hmm, now that you mention it, I think I prefer
It looks like we're not using the
I suppose this might be more consistent, but I don't think it's a big deal (it's a different context than viewport), and the API already has getHomeBounds, so I guess I'd be in favor of leaving it as is to avoid API churn. |
This should be ready :) |
Looks lovely! |
Fix viewport.applyContraints (#833)
The goal of this PR is to #833 at some point.
Depending on what you prefer, you can merge now or when the fix is ready.