Lines Matching defs:rect
12 var rect = { top: bound.top,
16 if (rect.top < 0) {
17 rect.height += rect.top;
18 rect.top = 0;
20 if (rect.left < 0) {
21 rect.width += rect.left;
22 rect.left = 0;
25 var outsideHeight = (rect.top + rect.height) - window.innerHeight;
26 var outsideWidth = (rect.left + rect.width) - window.innerWidth;
29 rect.height -= outsideHeight;
32 rect.width -= outsideWidth;
34 return rect;