ngraham added a comment.
In D11219#223908 <https://phabricator.kde.org/D11219#223908>, @apol wrote: > I wonder if wit would make sense to make it in terms of the parent size too. Something like: `width: Math.min(gridUnit*20, parent.width * 0.8)` For some reason `Math.min (Kirigami.Units.gridUnit * 20, parent.width * 0.8)` does not work, and always gives me the value of `Kirigami.Units.gridUnit * 20`, even when I can verify that alone `width: parent.width*0.8` works fine. What's going on here? Is there an Import that we need for `Math.min()`? REPOSITORY R134 Discover Software Store REVISION DETAIL https://phabricator.kde.org/D11219 To: ngraham, apol, #discover_software_store Cc: ach, plasma-devel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
