Fix wrapping label in DateFormatPreferencePage
commit5e5aa48aa2a46b9eefbf7029c54b1035465825d4
authorThomas Wolf <thomas.wolf@paranor.ch>
Sun, 22 Jul 2018 18:27:50 +0000 (22 20:27 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Sun, 22 Jul 2018 18:27:50 +0000 (22 20:27 +0200)
tree5f3cb85aba89d744721b4d5e1ecbbee25bb5b1ab
parentabed6d01814ace23f3c0cc7f2c047105257056ae
Fix wrapping label in DateFormatPreferencePage

Using SWT.FILL and SWT.TOP as _width and height_ makes no sense.
The real problem with wrapping labels in a GridLayout is that one
needs some width to wrap against. With SWT.DEFAULT, the layout lets
the label itself determine its width, which of course will always
be the unwrapped width absent any other constraints.

If one wants to have wrapping, one needs to provide a reasonable
widthHint.

Change-Id: Ie07d2fd93f110048ddcfb535d0706347915852d0
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/preferences/DateFormatPreferencePage.java