[User Switcher] Just use Row's implicitWidth instead of calculating it manually
ClosedPublic

Authored by broulik on Jan 16 2017, 1:58 PM.

Details

Summary

I don't know what I was thinking when I implemented this but just use implicitWidth which is the correct width.

Fixes the label potentially being wider than the applet swallowing the right panel margin when placed at the end of a panel.

Test Plan

Tried in all modes (label only, icon only, label+icon) and the width was correct every time.

Diff Detail

Repository
R114 Plasma Addons
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik updated this revision to Diff 10237.Jan 16 2017, 1:58 PM
broulik retitled this revision from to [User Switcher] Just use Row's implicitWidth instead of calculating it manually.
broulik updated this object.
broulik edited the test plan for this revision. (Show Details)
broulik added a reviewer: Plasma.
broulik set the repository for this revision to R114 Plasma Addons.
Restricted Application added a project: Plasma. · View Herald TranscriptJan 16 2017, 1:58 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
davidedmundson accepted this revision.Jan 16 2017, 2:04 PM
davidedmundson added a reviewer: davidedmundson.
This revision is now accepted and ready to land.Jan 16 2017, 2:04 PM
This revision was automatically updated to reflect the committed changes.