Community
Participate
Working Groups
When the content of a ScrolledComposite is updated and becomes smaller so that no scroll bars are needed any more and alwaysShowScroll is set to true, a call to setOrigin(0,0) or a call to Scrollbar#setSelection(0) has no effect. This call is necessary because otherwise the updated content is positioned wrong (that means invisible). The problem is that the ScrolledCompositeLCA only writes out the barSelection if the Scrollbar is visible. But if alwaysShowScroll is enabled the ScrollBar isn't visible but the change of the barSelection needs to be written to the browser to set the scrollTop/scrollLeft properties of the container. With the attached patch of the ScrolledCompositeLCA the problem can be solved.
Created attachment 99905 [details] ScrollCompositeLCA patch
Applied patch in CVS HEAD. Thank you, Christian.