-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds option to auto-adjust the track height to show all features #4252
base: main
Are you sure you want to change the base?
Conversation
@cmdcolin couple of questions:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4252 +/- ##
==========================================
+ Coverage 62.61% 62.62% +0.01%
==========================================
Files 1088 1086 -2
Lines 31495 31442 -53
Branches 7531 7507 -24
==========================================
- Hits 19721 19692 -29
+ Misses 11602 11578 -24
Partials 172 172 ☔ View full report in Codecov by Sentry. |
|
plugins/linear-genome-view/src/BaseLinearDisplay/models/TrackHeightMixin.tsx
Outdated
Show resolved
Hide resolved
…rst render" i.e. all blocks are defined, then determine track height ;; renames and redefines some getters
can you post a couple session links that demonstrate the usage of this feature? |
|
This is great to see, it will be a nice option to have. Some things I noticed while trying out this branch:
|
…etting, resets setting when user manually resizes their track
Fixed, should work with alignments displays now
Going to leave as-is for now, because the layout height "only increases"
Now, if the user resizes their track while one of the auto-adjust settings are activated, the setting will change to "off" with a notification to the user. The user can then change the setting back if they wish. I think this is a good solution because it will always do what the user is asking (that is, maintain the track height they have set it to). Let me know what you think.
The +100 magic number has been added to the layout height calc so the scroll bar will no longer appear when the user is making use of these settings. |
Some comments from Lincoln:
|
…" ;; auto-adjust now shrinks with rendered features
currently that is not part of this PR. I think this is worth discussing though. |
example of where per-track setting might be relevant a) situation like @nathanweeks refers to where admin might want it pre-configured possible way to help address this in the UI: |
plugins/svg/src/SvgFeatureRenderer/components/SvgFeatureRendering.tsx
Outdated
Show resolved
Hide resolved
It is configurable on a per-session basis as part of this PR -- like track labels orientation -- I would say we should consider either making it configurable per-session, or configurable per-track. Thoughts, @cmdcolin ? |
it could be worth experimenting with per track to see how it feels |
79b2765
to
99896db
Compare
Adds new menu option to auto-adjust the track height to expand and shrink based on the features shown.
The functionality is as follows:
‘static’ === the track height will assume the height the user has adjusted the height to, or the configured height
‘dynamic’ === the track height will expand and shrink based on the height of the features shown
Resolves #534
Adds a slot for this in the config: