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

Side by Side Diff: gm/rebaseline_server/static/rebaseline_server.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: 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
OLDNEW
(Empty)
1 function make_results_header_sticky( ) {
epoger 2014/08/06 17:14:11 Why is this function in its own new file? (I'm in
humper 2014/08/06 17:32:12 Discussed in person; renamed file.
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

Powered by Google App Engine
This is Rietveld 408576698