Skip to content

[Bug] 甘特图任务条样式问题 #5013

@jackzer666

Description

@jackzer666

Version

latest

Link to Minimal Reproduction

none

Steps to Reproduce

  1. 使用官网示例https://visactor.com/vtable/demo/gantt/gantt-edit?version=1.23.2
  2. 将宽度调整大些,比如1200
  3. 此时任务条会向右下方溢出,右侧溢出到了border之外
Image

Current Behavior

bar内部的样式溢出了,且不是一定溢出的

  1. 有时页面上有很多bar,只有一部分溢出了
  2. 有的bar本来显示正常,在横向滚动后会在某个时间段溢出

另外我猜测和使用电脑的window.devicePixelRatio有关系,使用的mac上的devicePixelRatio是2,就会出现这种情况。而另一台devicePixelRatio=1的windows电脑在官网demo中不会出现该现象

Expected Behavior

样式正常显示

Environment

- OS: macOS Sequoia 15.7.3
- Browser: Chrome 144.0.7559.133
- Framework: vue3

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions