mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-10-01 12:10:40 +08:00
use jQuery to detect if body/calendar-element is visible and ready for rendering
This commit is contained in:
1 parent
dbcaacd67a
commit
fec455dbfc
1 file changed
+2
-2
+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