Changeset 440


Ignore:
Timestamp:
May 19, 2006, 8:13:59 AM (18 years ago)
Author:
mmc
Message:

Fixed a bug in the pop-up editor, which showed up whenever a window
was tall and skinny, as it was in nanoMOS 3.0. The editor was using
screenwidth instead of screenheight to adjust its position.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/editor.tcl

    r115 r440  
    283283    set h [expr {[font metrics $fnt -linespace]+4}]
    284284    set h [expr {($h < $_loc(h)) ? $_loc(h) : $h}]
    285     if {$h+$_loc(y) >= [winfo screenwidth $e]} {
    286         set h [expr {[winfo screenwidth $e]-$_loc(y)}]
     285    if {$h+$_loc(y) >= [winfo screenheight $e]} {
     286        set h [expr {[winfo screenheight $e]-$_loc(y)}]
    287287    }
    288288
Note: See TracChangeset for help on using the changeset viewer.