Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
[Loading]Improving interop of element
Browse files Browse the repository at this point in the history
  • Loading branch information
DEWITTE Pierre-Alban committed Jan 5, 2017
1 parent 73a695b commit 162c494
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions myscript-common-element.html
Original file line number Diff line number Diff line change
Expand Up @@ -400,26 +400,27 @@
if(this.strokewidth){
this._penParameters.width = this.strokewidth;
}

this._inkPaper = new MyScript.InkPaper(this._inputArea, {
host: this.host,
protocol: this.protocol,
ssl: this.ssl,
type : this.type,
width : this.offsetWidth,
height : this.offsetHeight,
timeout : this.timeout,
applicationKey : this.applicationkey,
hmacKey : this.hmackey,
typeset: this.typeset,
components : this.components,
textParameters : this.textparameters,
mathParameters : this.mathparameters,
shapeParameters : this.shapeparameters,
musicParameters : this.musicparameters,
analyzerParameters : this.analyzerparameters,
penParameters : this._penParameters
});
if(!this._inkPaper) {
this._inkPaper = new MyScript.InkPaper(this._inputArea, {
host: this.host,
protocol: this.protocol,
ssl: this.ssl,
type: this.type,
width: this.offsetWidth,
height: this.offsetHeight,
timeout: this.timeout,
applicationKey: this.applicationkey,
hmacKey: this.hmackey,
typeset: this.typeset,
components: this.components,
textParameters: this.textparameters,
mathParameters: this.mathparameters,
shapeParameters: this.shapeparameters,
musicParameters: this.musicparameters,
analyzerParameters: this.analyzerparameters,
penParameters: this._penParameters
});
}
},
_onResize: function () {
if (this._inkPaper) {
Expand Down

0 comments on commit 162c494

Please sign in to comment.