0

I tried 'float: left;', but when scrolling(slowly is clearer), only one list item scroll..but not numItem of one row..(But photos app built in palm pre ROM woks just fine)

In one file:

<div id="results-list" class='thumb-list' x-mojo-element="List"></div>

In another:

<ul>#{-listElements}</ul>

In another:

<li class='thumb-item'>
 <img src="#{-pic_idFormatted}"/>
</li>

The CSS:

/**
 * thumblist
 */
.thumb-list {
 padding: 12px;
}

.thumb-item {
 float: left;
 margin: 8px;
}

.thumb-item img {
 width: 80px;
 height: 80px;
 border-radius: 5px;
 border: 1px solid black;
}

The Script:

    this.resultsModel = {items: []};

this.controller.setupWidget('results-list', {
        itemTemplate:'thumb/search-result',
        listTemplate:'thumb/result-list',
        formatters:{pic_id:this.formatThumb.bind(this)},
        //renderLimit: 50,
        lookahead: 20,
        fixedHeightItems: true,
        initialAverageRowHeight:100,
        hasNoWidgets: true
    },
    this.resultsModel);

alt text

alt text

in the same grid

Tsung.W
  • 289
  • 1
  • 4
  • 8
  • What exactly are you asking? Your question is very unclear as to the problem, what is the expected behavior? – Kyle Sep 10 '10 at 08:23
  • You're welcome. When writing your questions, there are formatting tools to make your code visible, also tell us which snippets are in which files if they are not in one :) – Kyle Sep 10 '10 at 08:31

1 Answers1

0

The <ul> should wrap <li>s:

<ul>#{-listElements}

<li class='thumb-item'>
 <img src="#{-pic_idFormatted}"/>
</li>

</ul>

But other than that, the rest of your question is very unclear.

Kyle
  • 65,599
  • 28
  • 144
  • 152