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

#726 Fix page zoom out render issue #735

Merged
merged 1 commit into from
Apr 11, 2013
Merged

#726 Fix page zoom out render issue #735

merged 1 commit into from
Apr 11, 2013

Conversation

johnmartin
Copy link
Contributor

Fixes #726

Requires: a ./bin/less --production after merge

Note: This fix works up to 4 levels of zoom out. Once you get past zoom: 0.6 this still happens. However in order to fix this in cases where the user zooms out < 0.6 it'd involve some very horrible JS [1] to detect a difference in zoom level and then adjust some item widths accordingly. I don't really want to add JS module for such a minor edge case.

[1] http://stackoverflow.com/questions/1713771/how-to-detect-page-zoom-level-in-all-modern-browsers/5078596#5078596

@vitorbaptista
Copy link
Contributor

Hi @johnmartin, how may I test it? Is it simply opening CKAN main page and trying zooming in/out in a few different browsers?

@ghost ghost assigned vitorbaptista Apr 9, 2013
@johnmartin
Copy link
Contributor Author

@vitorbaptista It only effects pages with 2 columns. /dataset is a good example.

@vitorbaptista
Copy link
Contributor

@johnmartin Is it what this pr should fix?

27dd4ab5-67a1-41d9-8166-e538717fd5de

If so, I still could reproduce it using your patch in Chrome 23.0.1271.91 in Linux.

@johnmartin
Copy link
Contributor Author

@vitorbaptista Which zoom level is that? and have you run ./bin/less in order to update main.debug.css?

vitorbaptista added a commit that referenced this pull request Apr 11, 2013
#726 Fix page zoom out render issue
@vitorbaptista vitorbaptista merged commit ac3714c into master Apr 11, 2013
@vitorbaptista vitorbaptista deleted the 726-zoom-bug branch April 11, 2013 15:21
@vitorbaptista
Copy link
Contributor

Duh... you're right. I forgot to recompile the CSS. Just merged this in.

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.

Browser zooming effects page layout
2 participants