We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2014-06-22 22:32:09 +0200

[Bug] SilicaListView with TopToBottom breaks pulley menus

When SilicaListView has TopToBottom vertical layout direction, neither PullDownMenu nor PushUpMenu works when the content height is less than the height of the list view. The pulley menus are not accessible at all, and one of the menu highlights appears somewhere in the middle of the screen.

import QtQuick 2.0
import Sailfish.Silica 1.0

ApplicationWindow
{
    initialPage: Page {
        SilicaListView {
            anchors.fill: parent
            verticalLayoutDirection: ListView.BottomToTop
            model: 5 // <== make it 50 and the pulley menus appear correctly
            delegate: ListItem {
                Label {
                    text: modelData
                    anchors.centerIn: parent
                }
            }
            PullDownMenu {
                MenuItem { text: "PullDown 1" }
                MenuItem { text: "PullDown 2" }
            }
            PushUpMenu {
                MenuItem { text: "PushUp 1" }
                MenuItem { text: "PushUp 2" }
            }
        }
    }
}

[Bug] SilicaListView with TopToBottom breaks pulley menus

When SilicaListView has TopToBottom vertical layout direction, neither PullDownMenu nor PushUpMenu works when the content height is less than the height of the list view. The pulley menus are not accessible at all, and one of the menu highlights appears somewhere in the middle of the screen.

import QtQuick 2.0
import Sailfish.Silica 1.0

ApplicationWindow
{
    initialPage: Page {
        SilicaListView {
            anchors.fill: parent
            verticalLayoutDirection: ListView.BottomToTop
            model: 5 // <== make it 50 and the pulley menus appear correctly
            delegate: ListItem {
                Label {
                    text: modelData
                    anchors.centerIn: parent
                }
            }
            PullDownMenu {
                MenuItem { text: "PullDown 1" }
                MenuItem { text: "PullDown 2" }
            }
            PushUpMenu {
                MenuItem { text: "PushUp 1" }
                MenuItem { text: "PushUp 2" }
            }
        }
    }
}