Hi,
had same quest years ago. Just extend your list widget and override following 
function:

//overridden
    _computeSizeHint : function()
    {
      var hint = this.base(arguments);

      var insets = this.getInsets();
      var insetY = insets.top + insets.bottom;

      hint.height = this.getItemHeight() * this.getLookupTable().getLength() + 
insetY;

      // if scrollbaŕ-x is visible also count them height
      if (this.getChildControl("scrollbar-x").isVisible()) {
        hint.height += this.getChildControl("scrollbar-x").getSizeHint().height;
      }
      hint.minHeight = Math.min(hint.height, this.getMinHeight());

      return hint;
    },

Gruß
Mustafa Sak

Applications & Integration
1&1 Internet AG | Ernst-Frey-Straße 10 | 76135 Karlsruhe | Germany


-----Ursprüngliche Nachricht-----
Von: woprandi [mailto:william.opra...@gmail.com] 
Gesendet: Mittwoch, 21. Januar 2015 16:17
An: qooxdoo-devel@lists.sourceforge.net
Betreff: [qooxdoo-devel] List height depends on the model size

Hi,


I have a list and I'd like "height" property depends the model length :
empty model -> height = minHeight
otherwise -> depends on the model length to avoid scrollbar if height < 
maxHeight

I don't know if I'm clear




--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/List-height-depends-on-the-model-size-tp7586715.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to