Permalink
Browse files

Fix button positioning bug

  • Loading branch information...
Floris Verloop
Floris Verloop committed Aug 3, 2016
1 parent 248f2f8 commit ca3afd5c3b9c7d2543c6a3cf9c3bb43fb9135661
Showing with 36 additions and 6 deletions.
  1. +22 −6 extras/Studio.framer/app.coffee
  2. +14 −0 framer/Components/ShareComponent.coffee
@@ -1,13 +1,29 @@
Framer.Info =
title: "Hallo ik ben een gore flo dddddddddssssss"
description: "<ul>"
title: "Bolt Inbox"
author: "Floris Verloop"
twitter: ""
twitter: "fverloop"
openInFramerURL: true
date: "Today"
description: """
If anyone knows a good E-mail client for mac? I don't know. So I desgined my own, simply and useful Bolt Inbox⚡️!
Please let me know in comments, whether you'll use this UI with pleasure, or maybe you prefer different style.
Show love Dude, press L 🚀
If anyone knows a good E-mail client for mac? I don't know. So I desgined my own, simply and useful Bolt Inbox⚡️!
Please let me know in comments, whether you'll use this UI with pleasure, or maybe you prefer different style.
Show love Dude, press L 🚀
If anyone knows a good E-mail client for mac? I don't know. So I desgined my own, simply and useful Bolt Inbox⚡️!
Please let me know in comments, whether you'll use this UI with pleasure, or maybe you prefer different style.
Show love Dude, press L 🚀
print Framer.Info
If anyone knows a good E-mail client for mac? I don't know. So I desgined my own, simply and useful Bolt Inbox⚡️!
Please let me know in comments, whether you'll use this UI with pleasure, or maybe you prefer different style.
Show love Dude, press L 🚀
"""
Framer.Extras.ShareInfo.enable()
print Framer.Info
@@ -404,6 +404,7 @@ class ShareComponent
)
showFullDescription = =>
@options.truncatedDescription = false
@description.height = @descriptionSize.height
@description.html = parseDescription(@shareInfo.description)
@@ -417,6 +418,7 @@ class ShareComponent
# Truncate if description is too long
if @shareInfo.description.length > @options.maxDescriptionLength
@options.truncatedDescription = true
@options.shortDescription = _.truncate(@shareInfo.description, {"length": @options.maxDescriptionLength, "separator": " "})
@descriptionTruncatedSize = Utils.textSize(
@@ -562,8 +564,20 @@ class ShareComponent
if @description and canvasHeight > @sheet.maxHeight
@sheet.height = @sheet.maxHeight
if @options.truncatedDescription
@description.height = @descriptionTruncatedSize.height
else
@description.height = @descriptionSize.height
@description.style.overflow = "visible"
if @shareInfo.openInFramerURL
@date.y = @description.maxY + 14
@buttons.y = @date.maxY + 14
_startListening: ->
@_calculateAvailableSpace()

0 comments on commit ca3afd5

Please sign in to comment.