iink SDK Web

Answered

Can I change the size of the editor dynamically?

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


Best Answer

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


Answer

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

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.

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