<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Define some height for the separator item.<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">
/Mikko<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/22 Gabriel Böhme <span dir="ltr"><<a href="mailto:m.gabrielboehme@googlemail.com" target="_blank">m.gabrielboehme@googlemail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi sailors,<br>
<br>
I have a ListView and want to create a delegate for it. So I use the<br>
BackgroundItem as Silica Documentation recommend, but it seems, that the<br>
BackgroundItem is not accepting all elements.<br>
<br>
Easy example:<br>
<br>
BackgroundItem {<br>
    id: background<br>
<br>
    highlightedColor: Theme.secondaryHighlightColor<br>
<br>
    onClicked: {<br>
        console.log("clicked: "+index)<br>
    }<br>
<br>
    Column {<br>
        id: background_content<br>
<br>
        spacing: Theme.paddingSmall<br>
        width: parent.width<br>
<br>
        TextEdit {<br>
            text: tmdb_title<br>
            color: Theme.highlightColor<br>
            font.pixelSize: Theme.fontSizeMedium<br>
            wrapMode: TextEdit.Wrap<br>
            readOnly: true<br>
        }<br>
        Label {<br>
            text: "Released: "+tmdb_release_date<br>
            color: Theme.primaryColor<br>
            font.pixelSize: Theme.fontSizeMedium<br>
        }<br>
        Separator {<br>
            width: parent.width<br>
            color: Theme.highlightColor<br>
        }<br>
    }<br>
<br>
In this case the BackgroundItem just accepts the TextEdit and the Label,<br>
but not the Separator. Which can be seen by clicking it. Setting the<br>
contentHeight, does not change this behavior, it's just results in not<br>
showing the highlighted color anymore.<br>
<br>
Do I miss something? Whats wrong here?<br>
<br>
Thanks, Gabriel.<br>
<br>
<br>
<br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
</blockquote></div><br><br></div></div>