https://bugs.kde.org/show_bug.cgi?id=398960

--- Comment #4 from Friedrich W. H. Kossebau <kosse...@kde.org> ---
(In reply to Kai Uwe Broulik from comment #3)
> Probably IconItem placed in a QtQuick Layout where the icon item's implicit
> size takes precedence over any custom set width/height. It should set
> Layout.preferredWidth (or Layout.minimum/maximumWidth) to fix that.

Yes, the IconItems are inside Layouts. And the weather icons from newaita
internally have a size of width="512pt" height="512pt" viewBox="0 0 512 512"
(slightly puzzled about the "pt" there), while the Breeze ones have 48.

Seems though that just setting Layout.minimumWidth/Height is not sufficient
somehow, that will be ignored/reset somehow.

The "conditionIcon" in the top panel has the minimum set to Huge=64, but yet it
cannot be resized to something smaller for some reason. See the current code
for which this bug report is valid here:
https://cgit.kde.org/kdeplasma-addons.git/tree/applets/weather/package/contents/ui/TopPanel.qml

Adding a
```
        MouseArea {
            anchors.fill: parent

            onClicked: {
                console.log("MW:"+parent.Layout.minimumWidth+"
PW:"+parent.Layout.preferredWidth+" IW:"+parent.implicitWidth);
                console.log("MH:"+parent.Layout.minimumHeight+"
PH:"+parent.Layout.preferredHeight+" IH:"+parent.implicitHeight);
            }
        }
```
the output on click in the toppanel status icon is
```
qml: MinW:64 PrefW:-1 ImplW:512
qml: MinH:64 PrefH:-1 ImplH:512
```
where I would have expected one is able to shrink the IconItem still? But
somehow the layout does not react accordingly.

The icons in the forecast columns are exposing an even greater challenge, being
created by a Loader in a Repeater, who again are created by a Loader in a
repeater, where Layout property setting is not yet really understood by me (and
possibly broken in my code or perhaps even Qt ones).

Going to play some more to get more ideas...

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to