The rc-trigger cannot correctly calculate the offset value when the screen resolution is enlarged to 150%

未关闭
#384 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
react, typescript
领域
frontend

调研方向

在显示缩放设置为 150% 时,使用与浏览器右边缘对齐的 rc-trigger 重现该问题。首先跟踪点击 trigger 时使用的偏移量计算,并比较其在正常缩放和放大缩放下的行为。当弹出窗口保持在屏幕内,而不是打开到右边缘之外时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

For example, there is a component wrapped in an rc-trigger located on the right edge of the browser, and the trigger point is located on the right edge. Clicking on the trigger point will display the content of the rc-trigger to the right of the trigger point. At this point, the screen will be enlarged to 150%, and the trigger point will still be on the right edge. Clicking on the trigger point will cause the content of the rc-trigger to pop up outside the screen (outside the right screen) instead of on the left.
After analysis, it was concluded that the rc-trigger did not calculate the magnification or reduction factor when calculating the edge width

主要语言
TypeScript
星标
391
派生
245
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

react-component/trigger 的其他 Issue

查看 react-component/trigger 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。