likemike Posted April 3, 2021 Share Posted April 3, 2021 Hello! I need to resize a scrollbox, and I've found that: procedure TMainmForm.UnimButton1Click(Sender: TObject); var dHeight: Integer; scrollJSName: string; begin dHeight := 400; UnimPanel1.Height := UnimPanel1.Height + dHeight; scrollJSName := UnimScrollBox1.JSName; UniSession.AddJS('var me='+scrollJSName+'.scrollableBehavior.scrollView.getScroller(); me.maxPosition.y+='+IntToStr(dHeight)); end; from Sherzod, But in the actual version an error occured; Cannot read property "scrollView"... So what is the actual JavaScript code for that? Best regards Link to comment Share on other sites More sharing options...
Recommended Posts