Bug 390927

Summary: GlobalDrawer's minimum width is 360 pixels on the desktop
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Nate Graham <nate>
Component: generalAssignee: Marco Martin <notmart>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: Master   
Target Milestone: Not decided   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=385992
Latest Commit: Version Fixed In:

Description Nate Graham 2018-02-22 22:19:35 UTC
In src/controls/GlobalDrawer.qml#n215, the width of the GlobalDrawer is set to Math.min (Units.gridUnit * 20, root.parent.width * 0.8)

Units.gridUnit * 20 works out to 260 pixels on the desktop. That's really wide for a minimum width. Why not just use the content width?

Because Discover uses the GlobalDrawer as an always-visible sidebar, it's comically wide and generates user complaints. See Bug 385992.
Comment 1 Nate Graham 2018-02-23 01:18:17 UTC
Not needed, and I was misreading the code anyway (confused min() and max() ). This width is probably fine when it's used for its intended purpose.