Skip to content
This repository has been archived by the owner on Jun 21, 2018. It is now read-only.

Commit

Permalink
Richard Quadlings "deprecated features removed" patch - Thanks Richard!
Browse files Browse the repository at this point in the history
git-svn-id: https://calendardateselect.googlecode.com/svn/trunk@261 4972a71b-da31-0410-b7dd-373b726a5e75
  • Loading branch information
timcharper committed Nov 14, 2007
1 parent 0995b97 commit c07d56a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -126,9 +126,9 @@ CalendarDateSelect.prototype = {
},
positionCalendarDiv: function() {
above=false;
c_pos = Position.cumulativeOffset(this.calendar_div); c_left = c_pos[0]; c_top = c_pos[1]; c_dim = this.calendar_div.getDimensions(); c_height = c_dim.height; c_width = c_dim.width;
c_pos = Element.Methods.cumulativeOffset(this.calendar_div); c_left = c_pos[0]; c_top = c_pos[1]; c_dim = this.calendar_div.getDimensions(); c_height = c_dim.height; c_width = c_dim.width;
w_top = window.f_scrollTop(); w_height = window.f_height();
e_dim = Position.cumulativeOffset($(this.options.get("popup_by"))); e_top = e_dim[1]; e_left = e_dim[0]; e_height = $(this.options.get("popup_by")).getDimensions().height; e_bottom = e_top + e_height;
e_dim = Element.Methods.cumulativeOffset($(this.options.get("popup_by"))); e_top = e_dim[1]; e_left = e_dim[0]; e_height = $(this.options.get("popup_by")).getDimensions().height; e_bottom = e_top + e_height;

if ( (( e_bottom + c_height ) > (w_top + w_height)) && ( e_bottom - c_height > w_top )) above=true;
left_px = e_left.toString() + "px";
Expand Down

0 comments on commit c07d56a

Please sign in to comment.