Skip to content

compents width is not right #460

@WeiShengv99

Description

@WeiShengv99

version : 3.0.2

In my case when compents render , the compents width is not right ,it get window width ,not parents width,It contains slider width.

in doc demo ,i also find the same problem
first
open https://git.hust.cc/echarts-for-react/
second
go to demo page, you can see cmp width also not right,
but if you change the window size, the resize is working right.

i change version to 3.0.0, the problem is reslove, it seem like getBoundingClientRect not right in flex element or something, ..or get the error wrapper width,

here is demo for codesandbox

ps: sorry my english is bad, i hope you can understand what i mean...
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions