[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Possible Bug in SearchDialogs TabFolderLayout ?

Hi,

I added a custom ISearchPage into the eclipse SearchDialog. Inside this page, search criteria can be added through a button. If more than a number of this criterias is added, the page should not resize but offer a scrollbar. This works fine as long as the search page is not changed. After switching to another page and back, my search page gets the full size of the composite inside the scrollbar showing all criteria.

I had a look at SearchDialog and its inner class TabFolderLayout. In its computeSize Method TabFolderLayout iterates over all children of a composite to determine the size of the biggest child and returns this as the size of this composite. But imho, this is not the behavier wanted when a ScrolledComposite is involved?

Also does anybody know a way to prevent this behavier for ScrolledComposites ?

Harald