Skip to content

Timeline undocked doesn't allow vertical resize bigger than when docked  #17100

Open

Description

@eakwarren

Issue type

UI bug

Bug description

Bring up the Timeline (F12). By default, it's small along the bottom of the main panel. Resize vertically larger and it only goes so far. Undock the Timeline and try to resize bigger. It stops at the same height. It should be able to fill the screen.

Steps to reproduce

  1. Bring up the Timeline (F12). By default, it's small along the bottom of the main panel.
  2. Resize vertically larger and it only goes so far.
  3. Undock the Timeline and try to resize bigger. It stops at the same height. It should be able to fill the screen.

Screenshots/Screen recordings

No response

MuseScore Version

OS: macOS 13.2, Arch.: x86_64, MuseScore version (64-bit): 4.0.v4.0.2-230651546, revision: github-musescore-musescore-dbe7c6d

Regression

I don't know

Operating system

macOS 13.2.1

Additional context

No response

Activity

  1. added
    UI
    on Mar 31, 2023
  2. eakwarren commented on Oct 31, 2024

    @eakwarren
    ContributorAuthor

    @Eism Friendly bump. This vertical size limitation still exists in 4.4.3. It would be helpful to see and navigate all the score's staves in the Timeline when undocked (and placed on a 2nd monitor). Additionally the behavior is inconsistent compared to the Navigator (which can't be undocked, but can be dragged all the way up).

    Kapture.2024-10-31.at.09.45.31.mp4
  3. cbjeukendrup commented on Oct 31, 2024

    @cbjeukendrup
    Contributor

    Looks like the max height of those horizontal panels is simply hardcoded at 520 px. I'd think we can just remove that maximum height. That'd make this a good first issue.

    Or @Eism do you know if there is a specific reason for this max height?

  4. added
    good first issue
    community
    on Oct 31, 2024
  5. eakwarren commented on Nov 1, 2024

    @eakwarren
    ContributorAuthor

    @cbjeukendrup I setup a dev env. and began exploring. I'm likely missing something, but I'm not finding the height hardcoded anywhere. In /notation/view/widgets/timeline.cpp, it appears the height is calculated based on the number of staves and meta elements (Tempo, Time Sig. etc.)

    //---------------------------------------------------------
    //   Timeline::getHeight
    //---------------------------------------------------------
    
    int Timeline::getHeight() const
    {
        if (score()) {
            return (nstaves() + static_cast<int>(nmetas())) * _gridHeight + 3;
        } else {
            return 0;
        }
    }
    

    There's also the following in timeline.h

    QRectF getMeasureRect(int measureIndex, int row, int numMetas)
        {
            return QRectF(measureIndex * _gridWidth, _gridHeight * (row + numMetas) + 3, _gridWidth, _gridHeight);
        }
    

    I also poked around in /framework/dockwindow/thirdparty/KDDockWidgets/FloatingWindow files, but didn't see any default size restrictions.

    If I'm way off, please point me in the right direction as I'm happy to continue working this issue.

  6. Eism commented on Nov 1, 2024

    @Eism
    Collaborator

    Or @Eism do you know if there is a specific reason for this max height?

    I think it's just done to leave at least a little space for notation view in minimum window size. This limit is set for all horizontal panels on the page.

    @eakwarren, the maximum height of the panel is determined by the maximumHeight property: root.horizontalPanelMaxHeight // 520 for timelinePanel in NotationPage.qml

  7. cbjeukendrup commented on Nov 1, 2024

    @cbjeukendrup
    Contributor

    I think it's just done to leave at least a little space for notation view in minimum window size.

    Shouldn't that be achieved by setting a minimum height on the notation view?

  8. eakwarren commented on Nov 1, 2024

    @eakwarren
    ContributorAuthor

    The previous commit was to set the mixer panel height and the timeline panel used the same setting.

    Screenshot 2024-11-01 at 9 28 23 AM

    @cbjeukendrup @Eism I've commented out the line, compiled, tested both docked/floating cases. PR#25398 (I know the PR is trivial, but I hope I did it right since it's my first PR.) Cheers!

  9. moved this from Available to In progress in Community Projectson Dec 2, 2024
  10. added theissue type on May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

UIcommunitygood first issue

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions