[Bug] SilicaGridView with FlowTopToBottom breaks pulley menus

asked 2015-07-19 00:06:49 +0300

updated 2018-11-17 11:21:35 +0300

When SilicaGridView has flow: GridView.FlowTopToBottom set, the pulley menus get inaccessible.

It seems to be similar to this bug.

import QtQuick 2.0
import Sailfish.Silica 1.0

ApplicationWindow
{
    initialPage: Page {
        SilicaGridView {
            id: gridView
            anchors.fill: parent
            cellWidth: width / 3; cellHeight: cellWidth
            flow: GridView.FlowTopToBottom  //< without this line the pulley menus are accessible
            model: 30
            delegate: Rectangle {
                width: gridView.cellWidth
                height: gridView.cellHeight
                color: "transparent"
                border.color: Theme.highlightColor
                Label {
                    anchors.fill: parent
                    horizontalAlignment: Text.AlignHCenter
                    verticalAlignment: Text.AlignVCenter
                    text: modelData
                }
            }
            PullDownMenu {
                MenuItem { text: "PullDown 1" }
                MenuItem { text: "PullDown 2" }
            }
            PushUpMenu {
                MenuItem { text: "PushUp 1" }
                MenuItem { text: "PushUp 2" }
            }
        }
    }
}
edit retag flag offensive close delete