1
Vote

Initial layout wrong if GraphLayout is not initially visible (e.g. in hidden tab)

description

If the GraphLayout control is not shown (e.g. it is in a tab that is not selected) when the control initializes (or when the Graph property is set), the initial layout that is done is wrong because the vertex control sizes passed to the layout algorithm are all zero.

I have attached a patch that fixes this problem by deferring layout of a control that is not visible until it becomes visible.

file attachments

comments