Changeset 11136:c2de0e373a39 in orange


Ignore:
Timestamp:
10/17/12 18:31:22 (18 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Add the scroll bar height to the list view's size hint.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/preview/previewbrowser.py

    r11114 r11136  
    5656            return QSize(200, 140) 
    5757        else: 
    58             height = self.sizeHintForRow(0) 
     58            scrollHint = self.horizontalScrollBar().sizeHint() 
     59            height = self.sizeHintForRow(0) + scrollHint.height() 
    5960            _, top, _, bottom = self.getContentsMargins() 
    6061            return QSize(200, height + top + bottom + self.verticalOffset()) 
Note: See TracChangeset for help on using the changeset viewer.