|TableLayout layouts too early [message #895805]
|Mon, 16 July 2012 06:28
| Daniel KrÃ¼gler
Registered: July 2009
I suspect that most users of TableLayout applied to an SWT Table that is
used as the main control of an Eclipse view must have experienced the
If the view containing the table is presented on initial startup of the
RCP client, the first-time layout of TableLayout often happens *before*
the view has reached its final size. The effect is that the widths of
all table columns look too small relative to the room left.
Since TableLayout is only applied a single time (and I don't want to
have a change of this behaviour), it looks like we need to catch an
appropriate UI event that should be used as a trigger of our code to
apply TableLayout to such a table.
Is anyone aware of such an event - presumably part of the
view/perspective lifecycle - that could be used for such a delayed layout?
Let me emphasize that I consider the actual layout behaviour of
TableLayout as correct and I don't want to have another Layout (unless
this has a better internal trigger for what "first time" is considered).
Thanks & Greetings from Bremen,
Powered by FUDForum
. Page generated in 0.02776 seconds