Skip to content

Commit

Permalink
don't scroll wizard
Browse files Browse the repository at this point in the history
  • Loading branch information
jasny committed May 25, 2017
1 parent 5580181 commit 997f216
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions js/ractive-legalform.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,11 +457,10 @@
var offsetH1 = $('h1.template-name').outerHeight();

var pos = $(".wizard-step.active").position().top;
var padding = 10;
var padding = -30;

$('#doc-form').animate({scrollTop: pos + offset + offsetH1 + padding}, 500, 'swing', function() {
$('.form-scrollable').perfectScrollbar('update');
});
$('#doc-form').scrollTop(pos + offset + offsetH1 + padding);
$('.form-scrollable').perfectScrollbar('update');
});
},

Expand Down

0 comments on commit 997f216

Please sign in to comment.