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

[Bug] SilicaListView with TopToBottom breaks pulley menus [answered]

asked 2014-06-22 22:32:09 +0300

jpnurmi gravatar image

updated 2014-07-24 12:55:25 +0300

eric gravatar image

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" }
            }
        }
    }
}
edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by jiit
close date 2018-01-08 15:16:35.637773

Comments

You are talking about TopToBottom in the text, but in the code you are using BottomToTop. Please correct it, if this is a mistake.

michfu ( 2018-01-09 11:02:34 +0300 )edit

2 Answers

Sort by » oldest newest most voted
2

answered 2014-07-11 06:11:27 +0300

mjones gravatar image

Thanks for the report! This will be fixed in a future update.

edit flag offensive delete publish link more
2

answered 2018-01-08 14:17:15 +0300

The bug seems to be fixed in Sailfish 2.0. I'm not able to reproduce it anymore.

The similar bug using SilicaGridView is still unfixed.

edit flag offensive delete publish link more

Question tools

Follow
1 follower

Stats

Asked: 2014-06-22 22:32:09 +0300

Seen: 315 times

Last updated: Jan 08 '18