mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-07-01 16:50:24 +08:00
use jQuery to detect if body/calendar-element is visible and ready for rendering
This commit is contained in:
+2
-2
@@ -127,12 +127,12 @@ function Calendar(element, options, eventSources) {
|
||||
|
||||
|
||||
function elementVisible() {
|
||||
return _element.offsetWidth !== 0;
|
||||
return element.is(':visible');
|
||||
}
|
||||
|
||||
|
||||
function bodyVisible() {
|
||||
return $('body')[0].offsetWidth !== 0;
|
||||
return $('body').is(':visible');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user