Jump to content

Problem with TUnimScrollbox


likemike

Recommended Posts

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

×
×
  • Create New...