I want to adjust the size of the editor to fit that dialog.
Should I run iink.register every time I open a dialog?
Or is there a way to resize myscript editor after running iink.register?
iink-js 1.4.2
iink math
Best Answer
O
Olivier @MyScript
said
almost 2 years ago
Dear Toru Kuniyoshi San,
I am not sure to understand what you want to achieve. You would like to have a "fixed size" for the for your dialog that embeds the editor? How do you implement it? Indeed, this is likekly to be a coding issue?
I am not sure to understand what you want to achieve. You would like to have a "fixed size" for the for your dialog that embeds the editor? How do you implement it? Indeed, this is likekly to be a coding issue?
Toru Kuniyoshi
I put myscript editor inside the dialog.
The dialog changes size each time it opens.
I want to adjust the size of the editor to fit that dialog.
Should I run iink.register every time I open a dialog?
Or is there a way to resize myscript editor after running iink.register?
iink-js 1.4.2
iink math
Dear Toru Kuniyoshi San,
I am not sure to understand what you want to achieve. You would like to have a "fixed size" for the for your dialog that embeds the editor? How do you implement it? Indeed, this is likekly to be a coding issue?
Or maybe just using the "resize" function of the SVGRenderer.js will answer your needs?: https://myscript.github.io/iinkJS/docs/iink-js/1.4.1/global.html#resize
Best regards,
Olivier
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstOlivier @MyScript
Dear Toru Kuniyoshi San,
I am not sure to understand what you want to achieve. You would like to have a "fixed size" for the for your dialog that embeds the editor? How do you implement it? Indeed, this is likekly to be a coding issue?
Or maybe just using the "resize" function of the SVGRenderer.js will answer your needs?: https://myscript.github.io/iinkJS/docs/iink-js/1.4.1/global.html#resize
Best regards,
Olivier
Toru Kuniyoshi
Dear Olivier
The size of the dialog changes every time, so I was wondering what to do.
Thank you.
"resize" function seems to do what I want to do.
Olivier @MyScript
Dear Toru Kuniyoshi San,
thank you for the update, I am glad I was of help.
Fee free to contact us if you have any other question.
Best regards,
Olivier