mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-31 07:12:49 -04:00
Fixed the nanoscroller in the item details view to be off the sheet and always visible.
This commit is contained in:
parent
46f9667311
commit
acd94c4247
2 changed files with 9 additions and 2 deletions
app
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue