I have a editpart with multiple children. When i hide children using setVisible method the editpart does not resize. I want it to decrease size when children are hidden and increase size when chidren are visible.
I have tried repaint and revalidate method but it does not change size.
Jan Krakora Messages: 402 Registered: December 2009 Location: Prague
And the figure being invisible is getting invisible, but the parent has the same size, so there is a "hole", right?
Well, I think the parent figure's layout manager (ToolBarLayout) asks the child figure's layout manager (FlowLayout) for the child figure's preferred size.
And since it doesn't take the visible state into account, it returns the same size as if the figure was visible.
Could you remove/add the figure from the parent figure instead of setting it invisible?