Skip to content

Conversation

@mingyc
Copy link

@mingyc mingyc commented May 19, 2019

Example Bug: https://i.imgur.com/8hJoZTD.png

The current returned top position calculated by (pageHeight - 20 -
height) can be negative, leading to part of the image rendered outside
the screen. This commit fixes it by verifying if the difference of
windows height & image height is valid before returning.

A better fix would be resizing the image whenever necessary, which is
out of the scope of this commit.

Example Bug: https://i.imgur.com/8hJoZTD.png

The current returned top position calculated by (pageHeight - 20 -
height) can be negative, leading to part of the image rendered outside
the screen. This commit fixes it by verifying if the difference of
windows height & image height is valid before returning.

A better fix would be resizing the image whenever necessary, which is
out of the scope of this commit.
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.

1 participant