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

Padding is screwed up. #44

Open
jashkenas opened this issue Jul 29, 2014 · 3 comments
Open

Padding is screwed up. #44

jashkenas opened this issue Jul 29, 2014 · 3 comments

Comments

@jashkenas
Copy link
Member

Example: http://www.nytimes.com/interactive/2014/07/30/world/africa/31kidnap-docviewer2.html

Padding-left on .DV-docViewer .p0, .DV-docViewer .p1, .DV-docViewer .p2 is currently 60px. It looks like it wants to be 40.

@samuelclay
Copy link
Member

They should be using auto zoom instead. Looks like it's a hard-coded width.

DV.load("//www.documentcloud.org/documents/1236725-abubasirletter.js", {
  width: 970,
  height: 800,
  text: false,
  pdf: false,
  container: "#DV-viewer-1236725-abubasirletter"
});

@jashkenas
Copy link
Member Author

The same problem appears if you simply narrow any document in a new window on DocumentCloud.org. It starts cutting off the right side instead of centering nicely.

@knowtheory
Copy link
Member

Yeah, i see it. I gotta get my windows vms back up and running on my (new) machine so i can test against some IEs.

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

No branches or pull requests

3 participants