<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
wrong way. use Repeater instead of ListVIew<br>
<div class="moz-cite-prefix">10.05.2014 19:11, Krisztian Olah пишет:<br>
</div>
<blockquote
cite="mid:CACX4Zqa8m6aFJJv71Db-=7mnxF84HZsLqpNNQL-0-khT10wBpg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="">Hi everyone, I found this snippet in the Qt
Devdays Beiing document(p16), I want to do something similar;
Having a SilicaListView in a Column which in return is in a
SilicaFlickable. </div>
<div style="">
<br>
</div>
<div>SilicaFlickable {</div>
<div> PullDownMenu { ... }</div>
<div> Column {</div>
<div> SlideshowView {</div>
<div> model: monthModel</div>
<div> delegate: DateGrid { ... }</div>
<div>
...</div>
<div> }</div>
<div> SilicaListView {</div>
<div> model: agendaModel</div>
<div> delegate: EventItem { ... }</div>
<div> ...</div>
<div> }</div>
<div> } </div>
<div>}</div>
<div><br>
</div>
<div style="">The problem is, that in Column top and bottom
anchor doesn't work, my list items show up on the top of the
page stacked on top of each other (pesumably, because just one
item is visible). If I move my SilicaListView outside Column
then it kind of works, provided I anchor top to column.bottom
and bottom to parent.bottom(though I get a binding loop with
flick.contentHeight). The thing is I don't want SilicaListView
to be interactive I want only SilicaFlickable to be scrollable
and I want it to scroll to the bottom of listview.</div>
<div style=""> If I needed to know listview's contentHeight,
provided top and bottom aren't anchored then listview.height
or listview.contentHeight won't give the right answer, am I
correct? Is the correct way to get contentHeight:</div>
<div style=""> cHeight = children.height + spacing*count </div>
<div style="">?</div>
<div style=""><br>
</div>
<div style=""><br>
</div>
<div style="">SilicaFlickable {</div>
<div style=""> id: flick</div>
<div style=""> ...</div>
<div style="">
Column {</div>
<div style=""> id: column</div>
<div style=""> ...</div>
<div style=""> SilicaListView {</div>
<div style=""> id: listview</div>
<div style=""> spacing: 10</div>
<div style=""> interactive: false</div>
<div style=""> ...</div>
<div style=""> }</div>
<div style=""> }</div>
<div style="">}</div>
<div style=""><br>
</div>
<div style="">Any help would be much appreciated,</div>
<div style="">Thanks in advance</div>
<div style="">Kris</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list</pre>
</blockquote>
<br>
</body>
</html>