commit/galaxy-central: kanwei: trackster: Fix border and error not lining up at right place
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/15ace61775c5/ changeset: r5543:15ace61775c5 user: kanwei date: 2011-05-11 21:43:33 summary: trackster: Fix border and error not lining up at right place affected #: 2 files (37 bytes) --- a/lib/galaxy/visualization/tracks/data_providers.py Wed May 11 15:38:57 2011 -0400 +++ b/lib/galaxy/visualization/tracks/data_providers.py Wed May 11 15:43:33 2011 -0400 @@ -25,7 +25,7 @@ from pysam import csamtools, ctabix MAX_VALS = 5000 # only display first MAX_VALS features -ERROR_MAX_VALS = "Only the first " + str(MAX_VALS) + " %s in this tile are displayed." +ERROR_MAX_VALS = "Only the first " + str(MAX_VALS) + " %s in the region denoted by the red line are displayed." # Return None instead of NaN to pass jQuery 1.4's strict JSON def float_nan(n): --- a/static/scripts/trackster.js Wed May 11 15:38:57 2011 -0400 +++ b/static/scripts/trackster.js Wed May 11 15:43:33 2011 -0400 @@ -2418,7 +2418,7 @@ var data = result.data; // if ( (data.length && data.length < 4) || // (this.view.high - this.view.low > MIN_SQUISH_VIEW_WIDTH) ) { - if ( this.view.high - this.view.low > MIN_SQUISH_VIEW_WIDTH ) { + if ( this.view.high - this.view.low > MIN_SQUISH_VIEW_WIDTH ) { mode = "Squish"; } else { mode = "Pack"; @@ -2511,15 +2511,12 @@ // If there is a message, draw it on canvas so that it moves around with canvas, and make the border red // to indicate region where message is applicable if (result.message) { - $(canvas).css({ - "border-top": "1px solid red" - }); - ctx.fillStyle = "red"; ctx.textAlign = "left"; var old_base = ctx.textBaseline; ctx.textBaseline = "top"; - ctx.fillText(result.message, left_offset, 0); + ctx.fillRect(left_offset, 0, canvas.width - left_offset, 1); + ctx.fillText(result.message, left_offset, 2); ctx.textBaseline = old_base; // If there's no data, return. Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket