diff --git a/framer/Print.coffee b/framer/Print.coffee index b91b707a6..89424dfc9 100644 --- a/framer/Print.coffee +++ b/framer/Print.coffee @@ -12,34 +12,39 @@ Todo: exports.print = (args...) -> - printLayer = Session.printLayer + printLayer = Framer.Session.printLayer if not printLayer printLayer = new Layer printLayer.scrollVertical = true + printLayer.ignoreEvents = false printLayer.html = "" printLayer.style = "font": "12px/1.35em Menlo" "color": "rgba(0,0,0,.7)" "padding": "8px" "padding-bottom": "30px" - "zIndex": 9999 - "border-top": "1px solid #ccc" - "backgroundColor": "#fff" + "border-top": "1px solid #d9d9d9" - update = -> - printLayer.width = window.innerWidth - printLayer.height = 160 - printLayer.maxY = window.innerHeight - - update() - - Screen.on "resize", update + printLayer.opacity = 0.9 + printLayer.style.zIndex = 999 # Always stay on top + printLayer.visible = true + printLayer.backgroundColor = "white" + # printLayer.bringToFront() + + printLayer.width = window.innerWidth + printLayer.height = 160 + printLayer.maxY = window.innerHeight - printLayer.visible = true - - printLayer.html += "» #{args.map(Utils.stringify).join ', '}
" - printLayer._element.scrollTop = printLayer._element.scrollHeight + printNode = document.createElement("div") + printNode.innerHTML = "» " + args.map(Utils.stringify).join(", ") + "
" + printNode.style["-webkit-user-select"] = "text" + printNode.style["cursor"] = "auto" + + printLayer._element.appendChild(printNode) - Session.printLayer = printLayer \ No newline at end of file + Framer.Session.printLayer = printLayer + + Utils.delay 0, -> + printLayer._element.scrollTop = printLayer._element.scrollHeight \ No newline at end of file