l = Window.getClientWidth() + Window.getScrollLeft()\r
- w;\r
}\r
- if (t + h > Window.getClientHeight()\r
+ if (t + h + calendarToggle.getOffsetHeight() + 30 > Window\r
+ .getClientHeight()\r
+ Window.getScrollTop()) {\r
t = Window.getClientHeight() + Window.getScrollTop()\r
- h - calendarToggle.getOffsetHeight() - 30;\r
l += calendarToggle.getOffsetWidth();\r
}\r
- \r
+\r
// fix size\r
popup.setWidth(w + "px");\r
popup.setHeight(h + "px");\r
- \r
+\r
popup.setPopupPosition(l, t\r
+ calendarToggle.getOffsetHeight() + 2);\r
\r