Permalink
Browse files

Fix click on selection, better spacing

  • Loading branch information...
Floris Verloop
Floris Verloop committed Aug 4, 2016
1 parent fc80069 commit c8f1adedf9f8b62d2ed8b658118de462fbf0386c
Showing with 22 additions and 13 deletions.
  1. +15 −5 extras/Studio.framer/app.coffee
  2. +7 −8 framer/Components/ShareComponent.coffee
@@ -1,9 +1,19 @@
# Project Info
# This info is presented in a widget when you share.
# http://framerjs.com/docs/#info.info
Framer.Info =
title: "Test Prototype"
author: "Floris Verloop"
twitter: "fverloop"
description: "I wonder if we should make Framer.Extras.Preloader.enable() a public feature then, ‘cause people will pretty much never be able to make that preloader show? I wonder if we should make Framer.Extras.Preloader.enable() a public feature then, ‘cause people will pretty much never be able to make that preloader show?"
Screen.backgroundColor = "black"
Framer.Extras.Preloader.enable()
# grid = new GridComponent
# size: Screen
#
# grid.renderCell = (layer) ->
# layer.image = Utils.randomImage(layer) #+ "?cache=#{Date.now()}"
grid = new GridComponent
size: Screen
grid.renderCell = (layer) ->
layer.image = Utils.randomImage(layer) #+ "?cache=#{Date.now()}"
@@ -75,7 +75,7 @@ class Button extends ShareLayer
@onMouseOut ->
@states.switch("full")
@onClick ->
@onTap ->
if options.shareButton
window.open(options.url, "Share", "width=560,height=714")
else
@@ -409,8 +409,8 @@ class ShareComponent
@description.html = parseDescription(@shareInfo.description)
if @shareInfo.openInFramerURL
@date?.y = @description.maxY + 16
@buttons.y = (if @date then @date else @description).maxY + 16
@date?.y = @description.maxY + 12
@buttons.y = (if @date then @date else @description).maxY + 18
@_updateHeight()
@_calculateAvailableSpace()
@@ -559,8 +559,8 @@ class ShareComponent
@description.style.overflow = "scroll"
if @shareInfo.openInFramerURL
@date.y = @description.maxY + @options.padding
@buttons.y = @date.maxY + @options.padding
@date.y = @description.maxY + 12
@buttons.y = @date.maxY + 18
if @description and canvasHeight > @sheet.maxHeight
@sheet.height = @sheet.maxHeight
@@ -573,9 +573,8 @@ class ShareComponent
@description.style.overflow = "visible"
if @shareInfo.openInFramerURL
@date.y = @description.maxY + 14
@buttons.y = @date.maxY + 14
@date.y = @description.maxY + 12
@buttons.y = @date.maxY + 18
_startListening: ->

0 comments on commit c8f1ade

Please sign in to comment.