Skip to content

Warning when deleting a split area. #513

Description

@YevgeniGitin

Describe the bug:
When deleting a split area, the following warning appears in the console:
as-split: Percent areas must total 100%
After reviewing my implementation, I confirmed that the area sizes are set correctly.
In my use case, I always have at least 1 and at most 2 split areas at any given time.

  • When starting with one area or adding a second area, everything works as expected, and no warnings appear.
  • However, when deleting one of the areas, the warning is triggered—even though the remaining area is configured correctly.

Library version:
@angular-split version: "^19.0.0",
angular: 19 (latest).

Steps to reproduce the issue:

I created a demo to reproduce the issue:
Remove area demo

  1. Start with 2 split area.
  2. Delete one of the areas programmatically(by button click).

Observe the warning in the console:
as-split: Percent areas must total 100%

Expected behavior:
Deleting a split area should not result in a warning.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions