Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(732)

Side by Side Diff: gm/rebaseline_server/static/utils.js

Issue 446933002: make the action buttons for rebaseline server stick to the top of the window as you scroll (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address Elliot's comments Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gm/rebaseline_server/static/loader.js ('k') | gm/rebaseline_server/static/view.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 function make_results_header_sticky( ) {
2 element = $(".results-header-actions");
3 var pos = element.position();
4 $(window).scroll( function() {
5 var windowPos = $(window).scrollTop();
6 if (windowPos > pos.top) {
7 element.addClass("sticky");
8 } else {
9 element.removeClass("sticky");
10 }
11 });
12 }
OLDNEW
« no previous file with comments | « gm/rebaseline_server/static/loader.js ('k') | gm/rebaseline_server/static/view.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698