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

Fix for vanishing thumbnails, when browser-zoom is active. #304

Merged
merged 1 commit into from Oct 11, 2013

Conversation

nknapp
Copy link

@nknapp nknapp commented Oct 11, 2013

Hi, I discovered the problem that in some cases, the last thumbnail was invisible, when browser-zoom is active. The problem can be observed at [1]. When zooming to 90% the thumbnail disappears (e.g. in Chrome). The fix can be observed at [2]. When doing a lot of zooming, the last thumbnail may still disappear, but it is much more robust, than before the fix.

[1] ]http://www.knappi.org/galleria-error/themes/classic/classic-demo.html
[2] http://www.knappi.org/galleria-fixed/themes/classic/classic-demo.html

Due to a bug in jquery, outerwidth() returns the floor of the
actual outerwidth, if the browser is zoom to a value other than
100%. height() returns the floating point value.
This caused galleria to compute a wrong width for the 'thumbnails'
element. The container was not wide enough and the last thumbnail was
displayed in the next line, thus was effectively invisible.

Due to a bug in jquery, outerwidth() returns the floor of the
actual outerwidth, if the browser is zoom to a value other than
100%. height() returns the floating point value.
This caused galleria to compute a wrong width for the 'thumbnails'
element. The container was not wide enough and the last thumbnail was
displayed in the next line, thus was effectively invisible.
davidhellsing added a commit that referenced this pull request Oct 11, 2013
Fix for vanishing thumbnails, when browser-zoom is active.
@davidhellsing davidhellsing merged commit 621a782 into GalleriaJS:master Oct 11, 2013
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