Skip to content

Commit

Permalink
change style('width', '') (and similar) to style('width', undefined)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlieTheBotDev committed Jan 15, 2016
1 parent 150f781 commit 0a65355
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions modules/sticky-table-headers/main/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -156,22 +156,22 @@ class StickyTableHeaders
origScroll = wrapperNode.scrollTop

container
.style('height', '')
.style('width', '')
.style('height', undefined)
.style('width', undefined)

wrapper
.style('height', '')
.style('width', '')
.style('margin-top', '')
.style('margin-left', '')
.style('max-width', '')
.style('max-height', '')
.style('height', undefined)
.style('width', undefined)
.style('margin-top', undefined)
.style('margin-left', undefined)
.style('max-width', undefined)
.style('max-height', undefined)

table
.style('margin-top', '')
.style('margin-left', '')
.style('min-width', '')
.style('min-height', '')
.style('margin-top', undefined)
.style('margin-left', undefined)
.style('min-width', undefined)
.style('min-height', undefined)

offsetHeight = 0
offsetWidth = 0
Expand Down Expand Up @@ -212,7 +212,7 @@ class StickyTableHeaders

if options.fullWidth
table
.style('width', '')
.style('width', undefined)
.style('min-width', wrapperBox.width + offsetWidth - widthScrollbarOffset + 'px')
.style('min-height', wrapperBox.height + offsetHeight - heightScrollbarOffset + 'px')
else
Expand Down

0 comments on commit 0a65355

Please sign in to comment.