Problems with height in the webviewer

I see we’ve got the possibility of InjectedJavaScript in the webviewer component.

I’m using the webviewer to load a bunch of static html files (uploaded to the app) and display them in various pages.

The problem is that the webviewer is kind of acting like an iFrame - it doesn’t pass its height into the app, so you either wind up with content cut off, or a fixed size frame.

Unless I’m missing something?

If not, I’d like to use javascript to get the height of a specific element in the html doc of the webview, and then set the height of the webview to that.

Any thoughts?

See scrFramework7 for data exchange between App and WebViewer. I’m afraid that there’s no simpler option, or need a web server timer polling