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

            Bug ID: 401993
           Summary: The delegate recycler have a different geometry then
                    "raw" delegates
           Product: frameworks-kirigami
           Version: 5.53.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: notm...@gmail.com
          Reporter: elv1...@gmail.com
  Target Milestone: Not decided

SUMMARY



    import QtQuick 2.7
    import org.kde.kirigami 2.5 as Kirigami
    import QtQuick.Layouts 1.0


    Kirigami.CardsListView {
        ListModel {
            id: topLevel
            ListElement {name: "One"}
            ListElement {name: "Two"}
            ListElement {name: "Three"}
        }
        ListModel {
            id: secondLevel
            ListElement {name: "Alpha"}
            ListElement {name: "Beta"}
            ListElement {name: "Gamma"}
        }

        model: topLevel

        delegate: Kirigami.Card {
            width: parent.width
            height: content.height
            ColumnLayout {
                id: content
                height: implicitHeight
                Text { text: model.name; height: 40}
                ListView {
                    model: secondLevel
                    interactive: false
                    height: contentHeight
                    delegate: Rectangle {color:"red"; width: 42; height: 42}
                }
            }
        }
    }



STEPS TO REPRODUCE
1. Use the example above with and without recycler and witness the different
result

OBSERVED RESULT / EXPECTED RESULT
https://imgur.com/a/QVmOtLj

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

Reply via email to