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

Thomas Florenson <thomas.florenson....@gmx.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thomas.florenson....@gmx.fr

--- Comment #11 from Thomas Florenson <thomas.florenson....@gmx.fr> ---
Hi!

For me this bug reeks of an init problem when the display is vertical. I
couldn't find where the horizontal/vertical properties are set in the kickoff
code but it's probably done in a more generic piece of code.

Anyway, browsing the source code in 
https://cgit.kde.org/plasma-desktop.git/tree/applets/kickoff/package/contents/ui
I could find a suspicious function in KickoffItem.qml:

PlasmaCore.SvgItem {
        id: arrow

        anchors {
            right: parent.right
            rightMargin: units.gridUnit * 2
            verticalCenter: parent.verticalCenter
        }

        width: visible ? units.iconSizes.small : 0
        height: width

        visible: (model.hasChildren == true)
        opacity: (listItem.ListView.view.currentIndex == index) ? 1.0 : 0.4

        svg: arrowsSvg
        elementId: (Qt.application.layoutDirection == Qt.RightToLeft) ?
"left-arrow" : "right-arrow"
    }

Here, visible: is used before it's set. Therefore, if it's been initialized to
false, the SvgItem will not be visible at the first call (the first item), but
visible on subsequent calls. Also the height and width properties will be 0,
which is consistent with the observed behavior (see picture by MitraX).

I would simply set visible: before width: and see if it corrects the problem.
Unfortunately I don't have KDE dev tools installed so it's a bother to test.
Would someone try it? Thanks!

NB: I don't use QML so my code reading might be wrong

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

Reply via email to