Bug 391823 - First Button in a GridView has wrong width
Summary: First Button in a GridView has wrong width
Status: RESOLVED FIXED
Alias: None
Product: frameworks-qqc2-desktop-style
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.44.0
Platform: Chakra Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2018-03-13 15:17 UTC by Fabian
Modified: 2019-01-16 22:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Example qml file showing the issue (568 bytes, text/x-qml)
2018-03-13 15:17 UTC, Fabian
Details
Skeleton cpp to run test.qml (325 bytes, text/x-c++src)
2018-03-13 15:18 UTC, Fabian
Details
Image showing the wrong layouting (16.20 KB, image/png)
2018-03-13 15:20 UTC, Fabian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian 2018-03-13 15:17:39 UTC
Created attachment 111369 [details]
Example qml file showing the issue

When there are multiple Buttons in a GridView, the first one (and only the first one) has its width set to its implicit width, instead of the specified width.
Comment 1 Fabian 2018-03-13 15:18:20 UTC
Created attachment 111370 [details]
Skeleton cpp to run test.qml
Comment 2 Fabian 2018-03-13 15:20:19 UTC
Created attachment 111371 [details]
Image showing the wrong layouting
Comment 3 Nate Graham 2018-03-13 15:35:44 UTC
Thanks for the bug report! Would you like to submit a patch to resolve this? Here is our documentation on this process:

- Patching the code: https://community.kde.org/Get_Involved/development
- Submitting your patch: https://community.kde.org/Infrastructure/Phabricator
Comment 4 Fabian 2018-03-13 18:31:22 UTC
Unfortunately, that appears to be too much inside of  qqc2's internals, and I'm too unfamiliar with the interplay of the QML engine and the theming plugin.

P.S.: @Nate Graham Not sure if you can see this in bugzilla, but people with commit access (hopefully)  don't need the link to the Get Involved page ;-)
Comment 5 Nate Graham 2018-03-13 18:39:32 UTC
Heh, sorry, Didn't know you were a contributor with commit access! There are a lot of Fabians.
Comment 6 David Edmundson 2019-01-16 21:54:18 UTC
Works fine here, can you confirm if this is still an issue?
Comment 7 Fabian 2019-01-16 22:48:40 UTC
I can confirm that it is no longer an issue, at least with the latest version of qqc2-desktop-style, potentially also with older ones. Closing it as fixed.