Community
Participate
Working Groups
Build Identifier: The attached example shows some oddities with wrappable Buttons, in which the wrapped lines are not centered individually. Reproducible: Always
Created attachment 205482 [details] Example
Sebastian, in your example you create a button with SWT.WRAP style flag only. In this case, the default text alignment is SWT.LEFT. Nevertheless, with SWT.CENTER style flag specified, it doesn't work too.
(In reply to comment #2) > Sebastian, in your example you create a button with SWT.WRAP style flag only. > In this case, the default text alignment is SWT.LEFT. Nevertheless, with > SWT.CENTER style flag specified, it doesn't work too. Yes, I tried SWT.CENTER as well and just forgot to attach the correct example.
(In reply to comment #2) > ...the default text alignment is SWT.LEFT. Please, discard this statement. If no align style flag is specified the Button#checkStyle add SWT.CENTER.
Fixed in CVS HEAD in MultiCellWidget.js (setting text-align css property)