Skip to content

[Bug][Chart] Chart size calculation differs when switching zoom/pan lock orientation #3405

@filipKovachev

Description

@filipKovachev

Description

The chart size calculation for some reason is different based on which lockAxis you set. The same calculation logic should be used, and the same size should be calculated, because the DOM element's size does not change.

Plan

KendoReact

Steps To Reproduce

  1. Open this example: https://stackblitz.com/edit/react-auyg9bxr-r8heutmj?file=app%2Fapp.tsx
  2. Click the button and notice the entire chart grows and shrinks.

Screenshots or video

No response

Actual Behavior

The chart re-initializes (expected) but changes its computed size (grows/shrinks) when the lock orientation changes, despite identical container dimensions.

Expected Behavior

The chart should apply the same layout calculation and render at the same size regardless of the lock orientation, since the container dimensions do not change.

Browser

Chrome

Browser version

latest

OS type

MacOS

OS version

No response

Last working version of the KendoReact package (if regression).

No response

Reported in Ticket ID: 1700514

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions