git ssb

16+

Dominic / patchbay



Commit c4488f18986b2f896e7c2655b025def9a2f8c7a2

app/html/scroller - only add prepend/ append if present

mixmix committed on 9/26/2018, 10:26:13 PM
Parent: ee289a19dca6fefc3c9308225b6c429fdeb79ad6

Files changed

app/html/scroller.jschanged
app/html/scroller.jsView
@@ -6,18 +6,18 @@
66 exports.create = function (api) {
77 return nest('app.html.scroller', Scroller)
88
99 function Scroller (opts = {}) {
10- const { prepend = [], content = null, append = [], classList = [], className = '', title = '' } = opts
10 + const { prepend, content = null, append, classList = [], className = '', title = '' } = opts
1111
1212 const contentSection = h('section.content', { title: '' }, content)
1313
1414 const container = h('Scroller',
1515 { classList, className, title, style: { 'overflow-y': 'scroll', 'overflow-x': 'auto' } },
1616 [
17- h('section.top', prepend),
17 + prepend ? h('section.top', prepend) : null,
1818 contentSection,
19- h('section.bottom', append)
19 + append ? h('section.bottom', append) : null
2020 ]
2121 )
2222
2323 container.scroll = keyscroll(contentSection)

Built with git-ssb-web