From 811e5264cf9197f312ed4536443afe312c7664f2 Mon Sep 17 00:00:00 2001 From: Corey Johnson & Nathan Sobo Date: Thu, 10 May 2012 17:52:41 -0600 Subject: [PATCH] Temporarily disable gutter. Add transition affect to margin-top. --- src/app/editor.coffee | 10 +++++----- static/editor.css | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/app/editor.coffee b/src/app/editor.coffee index 3223c7e61..b385d401a 100644 --- a/src/app/editor.coffee +++ b/src/app/editor.coffee @@ -214,11 +214,11 @@ class Editor extends View @lines.css('margin-top', -@scrollbar.scrollTop() % @lineHeight) # @scroller.scrollTop(@scrollbar.scrollTop()) - @gutter.scrollTop(@scrollbar.scrollTop()) - if @scroller.scrollLeft() == 0 - @gutter.removeClass('drop-shadow') - else - @gutter.addClass('drop-shadow') + # @gutter.scrollTop(@scrollbar.scrollTop()) + # if @scroller.scrollLeft() == 0 + # @gutter.removeClass('drop-shadow') + # else + # @gutter.addClass('drop-shadow') $(window).on "resize", => @updateLines() diff --git a/static/editor.css b/static/editor.css index 782a86528..91d9e9d60 100644 --- a/static/editor.css +++ b/static/editor.css @@ -62,6 +62,7 @@ .editor .lines { position: relative; + -webkit-transition: margin-top 30ms ease-in-out; display: table; width: 100%; height: 100%;