when viewed on IE8, i finally got this working/figured out how to get documents to show up right! Awesomeness.

The issue I have is that when the same document is viewed on Chrome, there is a second "box" under the PDF container. It's empty, and there isn't an error, but it messes with scrolling.

Not the attached image. I've zoomed out to show what I"m talking about. There is the second box, that extends below the PDF.

CommentFileSizeAuthor
fileviewer.jpg110.93 KBwernercd
fileviewer.jpg115.21 KBwernercd
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wernercd’s picture

Title: Chrome Issue » File Field issue (formerly just Chrome Issue)
Issue tags: +Chrome View File Field

I think the issue is when you allow mutliple PDFs in the field:
Home » Administration » Structure » Content types » pdf » Manage fields

When Editing the particular Field (which I called PDF), "PDF FIELD SETTINGS" > "NUMBER OF VALUES" > Set to greater than 1...

I had 2 PDFs in that field, and it showed the second box but no PDF in that box. Nor did it show the second PDF in the first box after the first one.

I assume Fileviewer is unable to graciously handle multiple Files in the same field. I think I tried it in IE8 and didn't have the second box, so it may just be a chrome issue.

I'm not 100% how something like that should be handled.
- Block the ability to change from 1 file for that content type.
- Create a new "File (PDF)" Field type that is set to 1
- Handle multiple file fields somehow.
* One box, multple files in the box, one after another...
* One box, menu/tab somewhere to switch between the PDFs
* Multiple Box's, one for each PDF
* Detection for this situation with a big fat warning, with instructions on how to fix it...

shenzhuxi’s picture

Assigned: Unassigned » shenzhuxi
Status: Active » Fixed

Fixed by embedding with iframe to support multi fields.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mathdz’s picture

Disculpen soy de mexico espero y puedan entenderme, estoy tratando de incorporar Fileviewer en mi proyecto y mi duda es como se hace este paso que biene en el READER.txt:

Go to https://github.com/openlibrary/bookreader/pull/7 to ask openlibrary pull my fix into the master.

no comprendo que debo de hacer en este paso, espero puedan orientarme. Gracias.