I call the private property _rowHeight of ListViewPane
like this:
lv.getPane()._rowHeight = 30;


2006/7/28, Michael Wilson <[EMAIL PROTECTED] >:
Answered my own question but it causes another issue using
QxListViewPane.setRowHeight ().  After setting the click/focus events are
happening as if the height was still 16 px high.  Because my table is
now "taller" if I click on the 2nd item in the ListView it actually
focuses the 4th.

So I guess my question needs to be modified:
  How do appropriately increase the height of a row in the QxListView
widget so that I can still focus the row by clicking on it?

I'm currently doing this:
<snip>
  ...
  window.application.main = function()
  {
    d = this.getClientWindow().getClientDocument();
    var widget = new tblMain(d);
    var tbl = widget.getTable();
    var pane = tbl.getPane ();

    widget.setTop(25);
    widget.setLeft(0);
    widget.setWidth("100%");
    widget.setHeight("100%");
    d.add(widget);

    for (var i=0, j=pane.getRowCount(); i < j; i++) {
      pane.setRowHeight(i,48);
    }

   tbl.update();
  }
</snip>

PS: sorry if this shows up twice but the last two messages I've sent
haven't appeared in the 12 hours since I sent them for some reason ...


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



--
一农工作室
http://www.ynstudio.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to