Open Inetsis opened 4 years ago
@Inetsis which version of Firefox do you use? Firefox is supported.
Which actions cause this error - can you reproduce it?
Ok, I did some research to understand
So, error happens only if the control is hidden (heigt = 0, display = none, margin-left = 5000px, etc ...) before I load a blob pdf with openFile() function.
Curiously, i show the loading canvas, but after, I have the error and control stay gray.
Can you test this use case ? :
It's worked with Chrome Thanks
@Inetsis I drew up a small example where I initialize the viewer in a hidden div (visibility: hidden;
) and open a document while hidden. With a button I later toggle the visibility of the viewer. I tested it on Chrome, Firefox and latest Edge and it worked without problems. Did you try just using the CSS visibilty property?
Hello
Are-you compilant with Firefox ? I have an error with it :
`Mon Feb 17 08:55:47 GMT+100 2020 com.google.gwt.logging.client.LogConfiguration SEVERE: InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable java.lang.JsException: InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable at Unknown.value/<(http://localhost:2515/Scripts/pdf-web-viewer.js) at Unknown.value(http://localhost:2515/Scripts/pdf-web-viewer.js) at Unknown.value/<(http://localhost:2515/Scripts/pdf-web-viewer.js) at Unknown.value(http://localhost:2515/Scripts/pdf-web-viewer.js) at Unknown.value(http://localhost:2515/Scripts/pdf-web-viewer.js) at Unknown.anonymous(Unknown) pdfwebviewer.nocache.js:1205:6850
InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable pdf-web-viewer.js:1 value http://localhost:2515/Scripts/pdf-web-viewer.js:1 forEach self-hosted:235 value http://localhost:2515/Scripts/pdf-web-viewer.js:1 value http://localhost:2515/Scripts/pdf-web-viewer.js:1 forEach self-hosted:235 value http://localhost:2515/Scripts/pdf-web-viewer.js:1 value http://localhost:2515/Scripts/pdf-web-viewer.js:1 value self-hosted:878`
Thanks