this.app.root not existing in HTML5 2.2
Hi! All,
I used the term of use code from code gallery and modified it.
Before HTML 5 2.2 ,the below codes worked fine
// Hide the window's close button.
dojo.query('.panel-header-button', _this.app.root).style('visibility', "hidden");
// Size the iframe. An outer wrapping div is required for scrolling to work on iOS.
dojo.query('.terms-of-use-wrapper', _this.app.root).style('height', newHeight + "px");
dojo.query('iframe.terms-of-use', _this.app.root).style('height', newHeight - 10 + "px");
dojo.query('iframe.terms-of-use', _this.app.root).style('width', newWidth + "px");
After upgraded to HTML5 2.2 and converted it to typescript, it gave me the following error at compiling in vs 2012
The property 'root' does not exist on value of type 'geocortex.essentialsHtmlViewer.ViewerApplication'.
The property 'style' does not exist on value of type 'dojo.NodeList'.
Any ideas and suggestion are highly appreciated, thank you in advance!
Charlie
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
0 Kommentare