#NEWLINE# def isGeometricallyContainedIn( self , container , clientX , clientY ) : #NEWLINE# #INDENT# if ( None == container ) : #NEWLINE# #INDENT# raise IllegalArgumentException ( 'Container cannot be None' ) #NEWLINE# #UNINDENT# result = False #NEWLINE# "\n        * Equations below shrink container 1px around its perimeter,\n        * to account for apparent roundoff errors in FF2 associated\n        * with window scrolling. FF2 mouseout events get dropped\n        * (about half the time, with random scroll position choices\n        * hence my roundoff suspicions--problem did not occur in\n        * Chrome or IE7) without this 1px shrinkage. End users can't\n        * discriminate a 1px mouse shift anyway, so there is no\n        * real downside (except that you had to read this comment)\n        * to using this workaround.\n        *\n        " #NEWLINE# y = ( Window . getScrollTop ( ) + self . repairBadClientY ( clientY ) ) #NEWLINE# absTop = DOM . getAbsoluteTop ( container ) #NEWLINE# if ( ( absTop < clientY ) and ( ( y + 1 ) < ( absTop + DOM . getOffsetHeight ( container ) ) ) ) : #NEWLINE# #INDENT# x = ( Window . getScrollLeft ( ) + self . repairBadClientX ( clientX ) ) #NEWLINE# absLeft = DOM . getAbsoluteLeft ( container ) #NEWLINE# if ( ( absLeft < x ) and ( ( x + 1 ) < ( absLeft + DOM . getOffsetWidth ( container ) ) ) ) : #NEWLINE# #INDENT# result = True #NEWLINE# #UNINDENT# #UNINDENT# return result