Jump to content

TUniMemo Scrollbars, scrollTo bottom


pcoenen

Recommended Posts

Hi,

I'm trying to scrolldown to the end of my UniMemo using the following code but this doesn't seem to work.

mmRunTimeLog.JSInterface.JSCall('inputEl.scrollTo', ['bottom']);

Any idea what I could be doing wrong? Using uniGUI v1.90.0.1551

Regards,

Pascal

Link to comment
Share on other sites

18 minutes ago, pcoenen said:

I'm trying to scrolldown to the end of my UniMemo

Hello,

One possible solution:

  with UniMemo1 do
    JSInterface.JSCode(#1'.getEl().down("textarea").dom.scrollTop='#1'.getEl().down("textarea").dom.scrollHeight;');

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...