Skip to content

Commit d78f672

Browse files
committed
Correct the way to test an element is visible
1 parent 8fddaac commit d78f672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/angular-gridster.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@
697697
$elem.addClass('gridster');
698698

699699
var isVisible = function(ele) {
700-
return ele.style.visibility !== 'hidden' && ele.style.display !== 'none';
700+
return ele.style.visibility !== 'hidden' && ele.offsetParent != null;
701701
};
702702

703703
function updateHeight() {

0 commit comments

Comments
 (0)