Skip to content

bug: Editor tab group cannot restore to correct size after changing size, closing and reopening split group #644

@hepezu

Description

@hepezu

Describe the bug

Editor tab group cannot restore to correct size after changing size, closing and reopening split group.

Versions

  • OS: Windows
  • Browser: Chrome
  • Molecule: 0.9.0-beta.3

To reproduce

  1. Open split tab group.
  2. ** Change size of split group.**
  3. Close the splited group.
  4. Reopen split tab group.

Expected

Restore to saved size.

Actually happening

The size is incorrect.

Related code

Code in Editor.tsx

initialSize={
    groupSplitPos[index]
        ? `${groupSplitPos[index]}ratio`
        : undefined
}

The ratio causes incorrect size to split pane. Remove ratio to fix.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions