-
Notifications
You must be signed in to change notification settings - Fork 263
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 #324 getViewArea was returning an wrong formatted string. #325
Fix #324 getViewArea was returning an wrong formatted string. #325
Conversation
Fix for #324 |
We're cleaning up our Repo to follow GitFlow. I've targeted this against our Develop branch now. |
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.
Reviewed 1 of 2 files at r1, 1 of 1 files at r2.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @oliver-szymanski)
The numbers that are output agree with each other (for a grid size of 50 at 100% zoom) but the width and height in cells are way off for the view shown. Too funny. It is dividing the viewport size in pixels by grid size to get the size in cells and ignoring zoom level. |
It was broken this way in Nerps 1.4.5.4 as well. |
I only changed the formatting of the output, as this was reported as an
error, not the way it counts.
If you tell me what needs to be changed to fix the numbers I can add that
as well
…On Sat, 23 Mar 2019 at 12:42, Phergus ***@***.***> wrote:
It was broken this way in Nerps 1.4.5.4 as well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#325 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AMBqs1837e0iGKLzG6xEWAf-BNteHCSrks5vZiEYgaJpZM4b4Z2f>
.
|
Yeah. It's not something you did. It's been like this from the beginning. The question is what is the correct output in cell sizes for a view like above where partial cells are shown on all sides? Do you include the partials in the count or only those cells fully visible? Or do you divide the size in pixels by grid size and factor in zoom? Wouldn't think folks would want this but maybe. |
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)