web/lib/coffeescripts/layout.coffee in vines-0.2.1 vs web/lib/coffeescripts/layout.coffee in vines-0.3.0
- old
+ new
@@ -11,11 +11,11 @@
fill: (selector, get, set) ->
$(selector).each (ix, node) =>
node = $(node)
getter = node[get]
- parent = getter.call node.parent()
- fixed = this.fixed node, selector, (n) -> getter.call n
+ parent = getter.call node.parent(), true
+ fixed = this.fixed node, selector, (n) -> getter.call(n, true)
node[set].call node, parent - fixed
fixed: (node, selector, fn) ->
node.siblings().not(selector).not('.float').filter(':visible')
.map(-> fn $ this).get()
\ No newline at end of file