src/hg/js/hgTracks.js 1.45
1.45 2009/11/12 23:38:41 tdreszer
Change to support buttonSlice (code isn't even used without dragScroll which is disabled)
Index: src/hg/js/hgTracks.js
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/js/hgTracks.js,v
retrieving revision 1.44
retrieving revision 1.45
diff -b -B -U 4 -r1.44 -r1.45
--- src/hg/js/hgTracks.js 17 Oct 2009 22:36:03 -0000 1.44
+++ src/hg/js/hgTracks.js 12 Nov 2009 23:38:41 -0000 1.45
@@ -826,16 +826,22 @@
// Need to adjust side label height as well!
var imgId = this.id.split("_");
var titlePx = 0;
var center = $("#img_center_"+imgId[2]);
- if(center.length > 0)
+ if(center.length > 0) {
titlePx = $(center).parent().height();
+ top += titlePx;
+ }
var side = $("#img_side_"+imgId[2]);
if( side.length > 0) {
$(side).parent().height( span.bottom - span.top + titlePx);
- top += titlePx;
$(side).css( {'top': top.toString() + "px" });
}
+ var btn = $("#img_btn_"+imgId[2]);
+ if( btn.length > 0) {
+ $(btn).parent().height( span.bottom - span.top + titlePx);
+ $(btn).css( {'top': top.toString() + "px" });
+ }
}
}
});
@@ -905,11 +911,19 @@
if($('.cytoBand').length > 1) {
$('img#chrom').chromDrag();
}
}
-
});
+////////// Attempts to get back button to work with us
+//window.onload = function () {
+// // Requires "Signed Scripts" and "UniversalBrowserRead" http://www.mozilla.org/projects/security/components/signed-scripts.html
+// if(window.history.next != undefined && window.history.next.length > 10) {
+// alert("Not at the end of time.");
+// } else
+// alert("At the end of time.");
+//}
+
function rulerModeToggle (ele)
{
autoHideSetting = !ele.checked;
var obj = imgAreaSelect.data('imgAreaSelect');