Permalink
Browse files

More robustness again missing date.

  • Loading branch information...
eelco committed Jul 29, 2016
1 parent ef12b68 commit f7736fef8e28ffb35df1772201ad3f18c211469a
Showing with 5 additions and 3 deletions.
  1. +5 −3 framer/Components/ShareComponent.coffee
@@ -348,8 +348,8 @@ class ShareComponent
@description.html = parseDescription(@shareInfo.description)
if @shareInfo.openInFramerURL
- @date.y = @description.maxY + 16
- @buttons.y = @date.maxY + 20
+ @date?.y = @description.maxY + 16
+ @buttons.y = (if @date then @date else @description).maxY + 16
@_updateHeight()
@_calculateAvailableSpace()
@@ -383,10 +383,12 @@ class ShareComponent
@_enableUserSelect(@description)
_renderButtons: ->
+ verticalPosition = if @date then @date.maxY else (if @descripion then @description.maxY else @credentials.maxY)
+
@buttons = new ShareLayer
height: 33
parent: @info
- y: @date.maxY + 20
+ y: verticalPosition + 16
@buttonDownload = new Button
url: @shareInfo.openInFramerURL

0 comments on commit f7736fe

Please sign in to comment.