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

Active page fix #483

Merged
merged 2 commits into from
Aug 21, 2019
Merged

Active page fix #483

merged 2 commits into from
Aug 21, 2019

Conversation

JRegimbal
Copy link
Contributor

Change how the center page is calculated (5105174) by correcting the usage of width and height and including padding. It seems padding should be included since that is part of what appears in the layout and affects where the page would be rendered.

An event 'ActivePageDidChange' is added since the active page might change while visible pages do not (e.g. pages 0 and 1 are visible but active page changes from 0 to 1 or vice versa).

Issue where half of height was being added to find center x position,
and similar with center y. Padding should be included when finding image
offsets since that does impact where the image is actually displayed in
diva.
@vigliensoni vigliensoni merged commit 4eeb1f5 into DDMAL:master Aug 21, 2019
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.

None yet

2 participants