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

--- Comment #2 from cwo <cwo....@posteo.net> ---
The two instances that cause the problem (I think there was a third one
reported on Matrix, but I forgot what exactly and it might be proted to
something else by now) all override the contentItem. This seems to be the issue

After some debugging with debug statements, the first entry seems to think its
availableWidth (at least initially) is 0 and so places the icon right at the
beginning. The other ones don't. but are also slightly wrong.

After some more debugging with Gammaray, it seems like the anchors for the Item
that the action buttons are parented to (a loader with nothing loaded) are
still using the default contentItem's anchors. Apparently they're assigned just
long enough to get the Loader's anchors set to them, then they are replaced by
the contentItem: binding in the SLI, and the complicated anchor assignment
somehow make it so they aren't updated when that happens. The now-unused
default contentItems don't have their size set correctly, but remain at
whatever they happened to be as things got set up. So the buttons end up
anchored to ghosts of something that has already left the scene.

I have no idea how to fix this. We could just anchor them to something else
(like the SLI itself) and that works in my quick testing if you jiggle some
other things around, but the code is full of "Here Be Dragons" warnings to not
mess with paddings etc. – it does a lot of things and I could easily see that
breaking other use cases.

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

Reply via email to