commit/galaxy-central: jgoecks: Trackster: use show/hide framework to manage reference track.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/c401bfbbdcc7/ changeset: c401bfbbdcc7 user: jgoecks date: 2012-03-26 16:50:31 summary: Trackster: use show/hide framework to manage reference track. affected #: 1 file diff -r b17faef8f1f36dda41f44206805b35896ce57cdc -r c401bfbbdcc70d50491e87c91fe18d5fb8fa18f7 static/scripts/trackster.js --- a/static/scripts/trackster.js +++ b/static/scripts/trackster.js @@ -4249,6 +4249,7 @@ this.data_url = reference_url; this.data_url_extra_params = {dbkey: view.dbkey}; this.data_manager = new ReferenceTrackDataManager(DATA_CACHE_SIZE, this, false); + this.hide_contents(); }; extend(ReferenceTrack.prototype, Drawable.prototype, TiledTrack.prototype, { build_header_div: function() {}, @@ -4266,7 +4267,7 @@ if (w_scale > this.view.canvas_manager.char_width_px) { if (seq.data === null) { - track.content_div.css("height", "0px"); + this.hide_contents(); return; } var canvas = ctx.canvas; @@ -4277,17 +4278,10 @@ var c_start = Math.floor(c * w_scale); ctx.fillText(seq[c], c_start, 10); } + this.show_contents(); return new Tile(track, tile_index, resolution, canvas, seq); } - track.content_div.css("height", "0px"); - }, - /** - * If there is a tile with sequence data, set content div so that data is visible. - */ - after_show_tile: function(tile) { - if (tile) { - this.content_div.css("height", "12px"); - } + this.hide_contents(); } }); 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