Skip to content

Improve Splitter Responsiveness And Handling Of Edge Cases #5

@dyoder

Description

@dyoder

Using flex-basis % to implement the splitter is a cool idea because it avoids layout-related computation. The idea was to let the browser do that since it's really good at it. Another advantage is that using flex-box makes it easier to support vertical splits.

In practice, it's a bit laggy and unpredictable. The former problem is likely due to triggering layouts each time we update the flex-basis. The latter is probably because the clamping function is too imprecise.

We might able to to fix these issues. On the other hand, performing the layout computation is not that bad.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions