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

Use absolute screen geometry to position the popup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/application/canvastooldock.py

    r11506 r11516  
    553553 
    554554    if orientation == Qt.Vertical: 
    555         if source_rect.right() + size.width() < screen_geom.width(): 
     555        if source_rect.right() + size.width() < screen_geom.right(): 
    556556            x = source_rect.right() 
    557557        else: 
     
    559559 
    560560        # bottom overflow 
    561         dy = source_rect.top() + size.height() - screen_geom.height() 
     561        dy = source_rect.top() + size.height() - screen_geom.bottom() 
    562562        if dy < 0: 
    563563            y = source_rect.top() 
     
    566566    else: 
    567567        # right overflow 
    568         dx = source_rect.left() + size.width() - screen_geom.width() 
     568        dx = source_rect.left() + size.width() - screen_geom.right() 
    569569        if dx < 0: 
    570570            x = source_rect.left() 
     
    572572            x = source_rect.left() - dx 
    573573 
    574         if source_rect.bottom() + size.height() < screen_geom.height(): 
     574        if source_rect.bottom() + size.height() < screen_geom.bottom(): 
    575575            y = source_rect.bottom() 
    576576        else: 
Note: See TracChangeset for help on using the changeset viewer.