Layout issue: autogrow label (SWT)

前端 未结 1 657
Happy的楠姐
Happy的楠姐 2021-01-18 20:09

I\'m using a GridLayout trying to make a label autogrow without hiding anything of its content. Here\'s a simple code to test: Everytime I press the button the label text gr

1条回答
  •  无人及你
    2021-01-18 20:41

    I think, the problem is that the layout is not invalidated when the text changes - try to force a relayouting (by calling getShell().layout(true, true)).

    0 讨论(0)
提交回复
热议问题