helloSystem / Filer

A file manager that can also render the desktop
GNU General Public License v2.0
30 stars 9 forks source link

Text labels not always centered #158

Open probonopd opened 1 year ago

probonopd commented 1 year ago

Text labels not centered if second line has '...' and is shorter than first line

image

Bug must be somehwere in desktopitemdelegate.cpp, search for "elided" (=...).

It works correctly when the second line is not elided:

image

probonopd commented 1 year ago

A possible explanation might be that it is not using the correct font/size/weight to do the calculations.

louies0623 commented 1 year ago

It should be the number of words to calculate, not about the font.