<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: RListDisplay Scrollbar</title><link>https://answers.axonivy.com/questions/387/rlistdisplay-scrollbar</link><description>&lt;p&gt;I use the RListDisplay Widget in Ivy 4.1.2 and 4.1.3 to display other components dynamically and it works good so far.&lt;/p&gt;
&lt;p&gt;The RListDisplay shows a vertical Scrollbar as soon as there is not enough vertical place to show all the components. It is included into a Rich Dialog and the list of components to load in the RListDisplay is built in the Rich Dialog Start method.&lt;/p&gt;
&lt;p&gt;The problem is that the scrollbar scrolls automatically to the end of the ListDisplay after the RDC has been loaded. I can not get the scrollbar to stay "quiet" at the 0.0 position.&lt;/p&gt;
&lt;p&gt;I have tried with the "ListDisplay.setAutoscrolls(false);" method or with panel.ListDisplay.setVerticalScrollBarPosition(0.0); in the last step of the start method: the scrollbar scrolls always automatically to the end.&lt;/p&gt;
&lt;p&gt;I there any solution to this problem?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/387/rlistdisplay-scrollbar" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 14 Jan 2011 03:29:10 -0500</lastBuildDate><item><title>Answer by Andriy Petrivskyy</title><link>https://answers.axonivy.com/questions/387/rlistdisplay-scrollbar/388</link><description>&lt;p&gt;In our projects we use the following solution that was found by my colleague: &lt;/p&gt;
&lt;p&gt;in the end of the start method we have RD step with the following code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;import ch.ivyteam.ivy.richdialog.exec.panel.IRichDialogPanel;

List&amp;lt;IRichDialogPanel&amp;gt; panels = panel.ListDisplay.getPanels();
if (panels.size() &amp;gt; 0) {
    IRichDialogPanel firstPanel = panels.get(0);
    panel.ListDisplay.selectPanel(firstPanel.getName());
    panel.ListDisplay.scrollToVisible();
}
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andriy Petrivskyy</dc:creator><pubDate>Fri, 14 Jan 2011 03:29:10 -0500</pubDate><guid>https://answers.axonivy.com/questions/387/rlistdisplay-scrollbar/388</guid></item></channel></rss>