commit/galaxy-central: jgoecks: Trackster: fix for showing/hiding histogram max label.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/6e0a266c62aa/ Changeset: 6e0a266c62aa User: jgoecks Date: 2013-06-11 17:57:27 Summary: Trackster: fix for showing/hiding histogram max label. Affected #: 1 file diff -r 172bab449347f3fb5a62e9f2e294880b2f3dd121 -r 6e0a266c62aaa187ac86f80676b843bbcd6a613d static/scripts/viz/trackster/tracks.js --- a/static/scripts/viz/trackster/tracks.js +++ b/static/scripts/viz/trackster/tracks.js @@ -3084,23 +3084,25 @@ * drawn/fetched and shown. */ postdraw_actions: function(tiles, width, w_scale, clear_after) { + var line_track_tiles = _.filter(tiles, function(tile) { + return (tile instanceof LineTrackTile); + }); + // // Take different actions depending on whether there are LineTrack/Coverage tiles. // - var non_line_track_tiles = _.filter(tiles, function(tile) { - return !(tile instanceof LineTrackTile); - }); - - // If some tiles have line track tiles (which denote coverage data), redraw all tiles using coverage data. - if (non_line_track_tiles.length > 0 && non_line_track_tiles.length < tiles.length) { + + if (line_track_tiles.length > 0) { // -- Drawing in Coverage mode. -- // Clear because this is set when drawing. this.max_height_px = 0; var track = this; - _.each(non_line_track_tiles, function(tile) { - tile.html_elt.remove(); - track.draw_helper(tile.region, tile.resolution, w_scale, { force: true, mode: 'Coverage' }); + _.each(tiles, function(tile) { + if (!(tile instanceof LineTrackTile)) { + tile.html_elt.remove(); + track.draw_helper(tile.region, tile.resolution, w_scale, { force: true, mode: 'Coverage' }); + } }); track._add_yaxis_label('max'); 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)
-
commits-noreply@bitbucket.org