diff options
Diffstat (limited to 'lib/dom_utils.coffee')
| -rw-r--r-- | lib/dom_utils.coffee | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee index e7fa9c2f..30530e0d 100644 --- a/lib/dom_utils.coffee +++ b/lib/dom_utils.coffee @@ -87,11 +87,10 @@ DomUtils = computedStyle = window.getComputedStyle(child, null) # Ignore child elements which are not floated and not absolutely positioned for parent elements with # zero width/height - if (computedStyle.getPropertyValue('float') == 'none' && computedStyle.getPropertyValue('position') != 'absolute') - continue + continue if (computedStyle.getPropertyValue('float') == 'none' && + computedStyle.getPropertyValue('position') != 'absolute') childClientRect = @getVisibleClientRect(child) - if (childClientRect == null) - continue + continue if (childClientRect == null) return childClientRect null |
