D20283: [SimpleKCM] Base the maximum height on the screen height, not some random value
Kai Uwe Broulik
noreply at phabricator.kde.org
Tue Apr 16 14:10:26 BST 2019
broulik requested changes to this revision.
broulik added a comment.
This revision now requires changes to proceed.
Instead of swapping out one random number for another, please correctly calculate the implicit size of the page, like `GridViewKCM` does:
Something like
implicitHeight: Math.min(flickable.contentHeight, Kirigami.Units.gridUnit * 20)
+ topPadding + bottomPadding
+ (header && header.visible ? header.height + header.topPadding + header.bottomPadding : 0)
+ (footer && footer.visible ? footer.height + footer.topPadding + footer.bottomPadding : 0) + Kirigami.Units.gridUnit
plus the page's own padding or so. :)
REPOSITORY
R296 KDeclarative
REVISION DETAIL
https://phabricator.kde.org/D20283
To: ngraham, #plasma, mart, broulik
Cc: broulik, davidedmundson, GB_2, kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190416/158a6213/attachment.html>
More information about the Kde-frameworks-devel
mailing list