gosling.js icon indicating copy to clipboard operation
gosling.js copied to clipboard

Track height inconsistency - dummy track

Open ThHarbig opened this issue 8 months ago • 2 comments

When combining "normal" gosling tracks with dummy tracks, the height of the dummy track corresponds to the total size while the height of the "normal" track refers to the height without the genomic axis. Therefore, to match the heights, users need to add 30 px to the height of the dummy track (see this example).

Vega uses the autosize property for the different use cases: fitting content to width/height or allowing legends etc. outside of the specified dimensions.

Another possibility would be returning the information if a track has an axis and how big it with/without the axis when accessing its dimensions.

ThHarbig avatar Oct 12 '23 15:10 ThHarbig