eclipse-rap / org.eclipse.rap

Eclipse RAP Runtime (Remote Application Platform)
https://www.eclipse.org/rap/
Eclipse Public License 1.0
17 stars 19 forks source link

pack for column #197

Closed demetr88 closed 4 weeks ago

demetr88 commented 2 months ago

I'm not sure that's bug but if i'm using pack for column in TableViewer and set bold font for value to pack doesn't work correctly because width is set for normal text and so set to the end of value "..." as of extra screen_ 2024-06-27_01-45-48_PM

ifurnadjiev commented 4 weeks ago

The org.eclipse.swt.widgets.TableColumn.pack() is using the header font, but not the item font. For items the org.eclipse.swt.widgets.TableItem.getPackWidth(int) is using the Table font. For performance reasons the individual item font is not evaluated. That's the SWT behavior too.