Fixed the nanoscroller in the item details view to be off the sheet and always visible.

This commit is contained in:
Scott Erickson 2014-11-18 13:44:34 -08:00
parent 46f9667311
commit acd94c4247
2 changed files with 9 additions and 2 deletions
app
styles/play/modal
views/play/modal

View file

@ -21,8 +21,12 @@
position: absolute
left: 860px
top: 126px
width: 330px
width: 353px
height: 449px
.nano-content
right: 24px
//background: rgba(100,100,100,0.5)
#item-container

View file

@ -44,7 +44,6 @@ module.exports = class ItemDetailsView extends CocoView
@listenToOnce docs, 'sync', @onDocsLoaded
@render()
@$el.find('.nano:visible').nanoScroller()
onDocsLoaded: (levelComponents) ->
for component in levelComponents.models
@ -54,6 +53,10 @@ module.exports = class ItemDetailsView extends CocoView
else
@propDocs[propDoc.name] = propDoc
@render()
afterRender: ->
super()
@$el.find('.nano:visible').nanoScroller({alwaysVisible: true})
getRenderData: ->
c = super()