willemh Posted March 8, 2018 Share Posted March 8, 2018 Hi there, I'am trying to scroll to the top of my mainform. I've set the mainform autoscroll to true and tried this: UniSession.AddJS(MainForm.WebForm.JSName + '.getScrollable().getScroller().scrollToTop(true)'); but I'am getting the error that O0.getScrollable is not a function. Anyone a suggestion? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 9, 2018 Share Posted March 9, 2018 Hi, Are you using a mobile app or desktop? Quote Link to comment Share on other sites More sharing options...
willemh Posted March 9, 2018 Author Share Posted March 9, 2018 Hi, I am using a desktop app. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 9, 2018 Share Posted March 9, 2018 Hi, The above code for the mobile version Which build are you using ?! 1 Quote Link to comment Share on other sites More sharing options...
willemh Posted March 9, 2018 Author Share Posted March 9, 2018 Aaahh okay, good to know! I am using uni-1.0.0.1424. Quote Link to comment Share on other sites More sharing options...
willemh Posted March 15, 2018 Author Share Posted March 15, 2018 Hi Delphi Developer, can you help me with scroll to top problem? TIA, Willem. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 15, 2018 Share Posted March 15, 2018 Hi, Ok I will check and let you now Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 15, 2018 Share Posted March 15, 2018 One possible solution, can you try this?!: UniSession.AddJS(Self.WebForm.JSForm.JSName + '.body.dom.scrollTop=0;'); Quote Link to comment Share on other sites More sharing options...
willemh Posted March 15, 2018 Author Share Posted March 15, 2018 Works like a charm! Thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.