Ignore:
Timestamp:
05/10/13 11:58:13 (11 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Changed MenuPage size hint computation.

No longer uses the default QTreeView size hint as a minimum.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/document/quickmenu.py

    r11500 r11501  
    154154    def sizeHint(self): 
    155155        view = self.view() 
    156         hint = view.sizeHint() 
    157156        model = view.model() 
    158157 
     
    166165            height = height * count 
    167166        else: 
    168             height = hint.height() 
    169         return QSize(max(width, hint.width()), max(height, hint.height())) 
     167            height = 0 
     168        return QSize(width, height) 
    170169 
    171170 
Note: See TracChangeset for help on using the changeset viewer.