We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2014-06-22 22:32:09 +0200 |
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" }
}
}
}
}
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" }
}
}
}
}