gosling.js
gosling.js copied to clipboard
Track height inconsistency - dummy track
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.