commit/galaxy-central: jgoecks: More trackster cleanup.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/1eb4d4077a91/ Changeset: 1eb4d4077a91 User: jgoecks Date: 2013-10-11 22:34:28 Summary: More trackster cleanup. Affected #: 3 files diff -r 1c714b4bea0794266dfaa10491ff8d80163aee19 -r 1eb4d4077a91914f0f3df70d9ce39d1087744f26 static/scripts/viz/trackster/tracks.js --- a/static/scripts/viz/trackster/tracks.js +++ b/static/scripts/viz/trackster/tracks.js @@ -145,19 +145,12 @@ * Init constants & functions used throughout trackster. */ var - // Minimum height of a track's contents; this must correspond to the .track-content's minimum height. - MIN_TRACK_HEIGHT = 16, - // FIXME: font size may not be static - CHAR_HEIGHT_PX = 9, // Padding at the top of tracks for error messages ERROR_PADDING = 20, // Maximum number of rows un a slotted track MAX_FEATURE_DEPTH = 100, // Minimum width for window for squish to be used. MIN_SQUISH_VIEW_WIDTH = 12000, - - // Other constants. - // Number of pixels per tile, not including left offset. TILE_SIZE = 400, DEFAULT_DATA_QUERY_WAIT = 5000, @@ -3732,7 +3725,7 @@ var ReferenceTrack = function (view) { TiledTrack.call(this, view, { content_div: view.top_labeltrack }, { resize: false }); - this.visible_height_px = 12; + this.visible_height_px = 13; // Use offset to ensure that bases at tile edges are drawn. this.left_offset = view.canvas_manager.char_width_px; this.container_div.addClass("reference-track"); @@ -4139,7 +4132,7 @@ // HACK: use dummy painter to get required height. Painter should be extended so that get_required_height // works as a static function. var dummy_painter = new (this.painter)(null, null, null, this.prefs, mode); - return Math.max(MIN_TRACK_HEIGHT, dummy_painter.get_required_height(rows_required, canvas_width) ); + return Math.max(this.min_height_px, dummy_painter.get_required_height(rows_required, canvas_width) ); } }, diff -r 1c714b4bea0794266dfaa10491ff8d80163aee19 -r 1eb4d4077a91914f0f3df70d9ce39d1087744f26 static/style/blue/trackster.css --- a/static/style/blue/trackster.css +++ b/static/style/blue/trackster.css @@ -42,7 +42,7 @@ .label-track{font-size:10px;border:none;padding:0;margin:0;height:1.5em;overflow:hidden} .label-track .label{border-left:solid #999 1px;padding:1px;padding-bottom:2px;display:inline-block} .label-track .track-content{border:none} -.reference-track{border:none;margin:0;padding:0} +.reference-track{border:none;margin:0;padding:0;line-height:1} .right-float{float:right;margin-left:5px} .top-labeltrack{position:relative;border-bottom:solid #999 1px} .nav-labeltrack{border-top:solid #999 1px;border-bottom:solid #333 1px} diff -r 1c714b4bea0794266dfaa10491ff8d80163aee19 -r 1eb4d4077a91914f0f3df70d9ce39d1087744f26 static/style/src/less/trackster.less --- a/static/style/src/less/trackster.less +++ b/static/style/src/less/trackster.less @@ -283,6 +283,8 @@ border: none; margin: 0; padding: 0; + // Override Galaxy defaults. + line-height: 1; } .right-float { 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