Bug 420305 - ComboBox width should also include the indicator width in left/rightPadding
Summary: ComboBox width should also include the indicator width in left/rightPadding
Status: CONFIRMED
Alias: None
Product: frameworks-qqc2-desktop-style
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-19 14:37 UTC by Fab Stz
Modified: 2022-02-14 20:35 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fab Stz 2020-04-19 14:37:26 UTC
With an app using org.kde.desktop theme & using a Combobox component.
rightPadding doesn't include the width of the indicator.

If for example I want to size my ComboBox to the width of the largest element of the list, then I set the width of the combobox to the
"largestTextWidth" + leftPadding + rightPadding

When using themes like Universal, Default or Material... this works nicely. Actually they include the width of the "indicator" in leftPadding/rightPadding.
But with org.kde.desktop it's incorrect.

This is on KDE with Breeze theme (same problem with other themes, like QtCurve, but probably only Breeze is expected to be supported anyway)