Skip to content
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

Introduce custom viewport layout to fix container shrinking #149

Merged
merged 2 commits into from
Jan 26, 2023

Commits on Jan 26, 2023

  1. fix(flamegraph): Maintain the zoom factor when container shrinks

    Custom layout code to handle container shrinking.
    The default view port layout asks the preferred size
    of the view.
    
    But that cannot work since the canvas won;t update
    its width, it receives its size from the layout container.
    However, the default algorithm only updates the size
    after it has received the preferred size, or if the
    viewport got bigger.
    
    This code makes the necessary query to the canvas to
    asks if it needs a new size given the viewport width change,
    in order to keep the same zoom factor.
    
    The view location is also updated.
    
    Fixes #46
    bric3 committed Jan 26, 2023
    Configuration menu
    Copy the full SHA
    f5c427b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    97334a2 View commit details
    Browse the repository at this point in the history