commit/galaxy-central: james_taylor: trackster: give tile tracks a background that shows when loading tiles
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/570bbff943b1/ changeset: r4995:570bbff943b1 user: james_taylor date: 2011-02-04 20:17:07 summary: trackster: give tile tracks a background that shows when loading tiles affected #: 3 files (766 bytes) --- a/static/scripts/trackster.js Fri Feb 04 11:33:30 2011 -0500 +++ b/static/scripts/trackster.js Fri Feb 04 14:17:07 2011 -0500 @@ -51,6 +51,8 @@ }); } + + /** * Init constants & functions used throughout trackster. */ @@ -1360,6 +1362,15 @@ } if (!tile_element) { tile_element = track.draw_tile(resolution, tile_index, parent_element, w_scale); + if ( tile_element ) { + // Wrap element in div for background + var wrapper_element = $("<div class='track-tile'>").prepend( tile_element ); + // HACK: filtering + if ( tile_element.hasClass( FILTERABLE_CLASS ) ) { + wrapper_element.addClass( FILTERABLE_CLASS ); + } + tile_element = wrapper_element; + } } if (tile_element) { // Store initial canvas in case we need to use it for overview @@ -1398,6 +1409,7 @@ parent_element.append( tile_element ); track.max_height = Math.max( track.max_height, tile_element.height() ); track.content_div.css("height", track.max_height + "px"); + parent_element.children().css("height", track.max_height + "px"); if (track.hidden) { return; } --- a/templates/tracks/browser.mako Fri Feb 04 11:33:30 2011 -0500 +++ b/templates/tracks/browser.mako Fri Feb 04 14:17:07 2011 -0500 @@ -102,13 +102,22 @@ } .track-content { - background: #eee; + background: #eee url(${h.url_for('/static/images/tracks/diag_bg.gif')}); min-height: 16px; } .label-track .track-content { background: white; } + + .track-tile { + background: white; + } + + .track-tile canvas { + position: relative; + z-index: 100; + } </style></%def> 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