Changeset 3792

Show
Ignore:
Timestamp:
02/08/10 20:09:26 (5 weeks ago)
Author:
pazu2k@…
Message:

datepicker: fixes #4443: Datepicker's vertical position in thickbox. This also fixes the virtual position when the datepicker is close but not right at the bottom of the page.

Location:
trunk
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/jquery.ui.datepicker.js

    r3787 r3792  
    726726                        Math.abs(offset.left + dpWidth - viewWidth) : 0); 
    727727                offset.top -= Math.min(offset.top, (offset.top + dpHeight > viewHeight && viewHeight > dpHeight) ? 
    728                         Math.abs(offset.top + dpHeight + inputHeight * 2 - viewHeight) : 0); 
     728                        Math.abs(dpHeight + inputHeight) : 0); 
    729729 
    730730                return offset;