Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge remote-tracking branch 'origin/master'

  • Loading branch information...
commit a97ad7b0ae0d87fc8a7df248c13fd17e70fcf943 2 parents 5f0f5df + 995f2fc
@mtigas mtigas authored
Showing with 4 additions and 18 deletions.
  1. +3 −1 webapp/static/css/tabula_web.css
  2. +1 −17 webapp/static/js/pdf_view.js
View
4 webapp/static/css/tabula_web.css
@@ -146,7 +146,9 @@ ul#uploadedfiles li:hover button {
}
-
+.followyouaroundbar.affix {
+ width: 15%;
+}
.followyouaroundbar button{
margin-bottom: 5px;
}
View
18 webapp/static/js/pdf_view.js
@@ -53,23 +53,7 @@ $(document).ready(function() {
//make the "follow you around bar" actually follow you around. ("sticky nav")
$(document).ready(function() {
- elem = $(".followyouaroundbar");
-
- stick = function() {
- var windowTop = $(window).scrollTop();
- var footerTop = 50000; // this.jFooter.offset().top;
- var topOffset = this.offset().top;
- var elHeight = this.height();
-
- if (windowTop > topOffset && windowTop < footerTop) {
- this
- .css("position", "fixed")
- .css("width", "15%")
- .css("top", 70);
- }
- }
-
- $(window).scroll(_.throttle(_.bind(stick, elem), 100));
+ $('.followyouaroundbar').affix({top: 70 });
});
Tabula.PDFView = Backbone.View.extend({
Please sign in to comment.
Something went wrong with that request. Please try again.