Stretch does not update popup size on window resize / orientation change
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
首先,在链接的简单演示中复现该问题,使用左下角放置、宽度拉伸和点击触发器。跟踪 popup 的调整大小和方向变化处理;当窗口尺寸发生变化后,popup 能重新计算其拉伸后的尺寸,且不保留之前方向的尺寸时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Steps to reproduce:
- Simple demo: http://react-component.github.io/trigger/examples/simple.html
- placement = bottom left ; stretch = width / winWidth ; trigger = [ click ]
- Click test area to trigger a popup.
- Change screen orientation (resize window).
As the result the popup takes unexpected size from previous orientation. This may cause a visual mess on mobile screen.
- 主要语言
- TypeScript
- 星标
- 392
- 派生
- 250
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
react-component/trigger 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
react-component/trigger#593 · 1 个 reaction ·
-
useAlign reuses a stale flip decision after the viewport changes (popup stays flipped until reopen)可能已有人在做 @SXongin 于 34 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 30/100
react-component/trigger#651 ·
-
Does not work when rendered inside an iframe可能已有人在做 @PinkChampagne17 于 185 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 58/100
react-component/trigger#623 ·
-
useAlign.js: inline style reset to 0 is silently overridden under prefers-reduced-motion CSS (CSSTransition interpolation)可能已有人在做 @baofuen 于 144 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 65/100
react-component/trigger#618 · 1 条评论 ·
-
`collectScroller` is not working as expected when the element is in shadow DOM可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 3/5 1-2 天 新手友好度 42/100
react-component/trigger#555 ·
查看 react-component/trigger 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
zabuton-app/meguri#875 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 86/100
iruzen-dono/workless#117 ·
维护者通常 1 天内回复
-
area:api area:web wave wave:trivial
难度 2/5 1-3 小时 新手友好度 67/100
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
vetro-protocol/vetro-monorepo#1321 ·
维护者通常 1 天内回复