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

Fixed issue with scalebar drawing off bottom of screen in fullscreen mode #12

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

Conversation

thomas-villani
Copy link

If user set an external toolbar to openseadragon, then the scalebar would draw off bottom of the page in fullscreen mode (if BOTTOM_LEFT or BOTTOM_RIGHT position specified) because openseadragon adds the toolbar to the top of the page.

When setting a toolbar element external to OSD, the bottom left or bottom right scalebar gets drawn off bottom of page, this commit fixes that issue by checking for a toolbar element, and subtracting the offsetheight of the toolbar element from the y position of the scalebar
If openseadragon had a toolbar element specified (e.g. outside of viewer window), then in fullscreen mode, scalebar on bottom_left or bottom_right would draw off bottom of page (since toolbar is drawn at the top). Fixed this issue by checking for OSD toolbar and fullscreen, and subtracting toolbar height from y position of scalebar in bottom_left or bottom_right positioning
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