Scrolling during a tour is buggy if height is set to 100% on body and html
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- angular, typescript
- 领域
- frontend
调研方向
在仓库的 shepherd-tester 演示中使用 html 和 body height: 100% 重现该问题,然后检查 tour 的滚动行为。在不依赖已报告的 CSS workaround 的情况下,重复滚动仍能让 tour modal 保持可访问,而不是在 modal 滚出视图后停止,即表示工作完成。
由索引模型根据 Issue 内容生成。
描述
If you style your Angular app's "body" and "html" tags with "height: 100%" and then start a tour, scrolling will partially work (just as the demo "shepherd-tester" in the repo), but if you scroll up and down a bit, scrolling will suddenly stop working and you might get stuck with the tour modal out of view.
So if you have
body, html {
height: 100%;
}
in your styles.css, and want to use Angular Shepherd without the buggy scroll behavior, you need to find another way to make your app have full width/height with regards to the browser window.
One workaround that seems to work for me so far is:
styles.css
html, body {
min-height: 100vh;
margin: 0;
}
body {
display: flex;
}
app.component.css
:host {
flex: 1;
}
- 主要语言
- TypeScript
- 星标
- 238
- 派生
- 50
- 平均合并
- 1 分钟
- 30 天内合并 PR
- 9
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
shipshapecode/angular-shepherd 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
shipshapecode/angular-shepherd#2987 ·
-
难度 2/5 1-3 小时 新手友好度 48/100
shipshapecode/angular-shepherd#2986 · 3 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
shipshapecode/angular-shepherd#2774 ·
-
难度 3/5 1-2 天 新手友好度 35/100
shipshapecode/angular-shepherd#2610 · 15 条评论 · 12 个 reaction ·
-
angular-shepherd 未关闭enhancement
难度 3/5 1-2 天 新手友好度 32/100
shipshapecode/angular-shepherd#2240 · 3 条评论 ·
查看 shipshapecode/angular-shepherd 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
copse-dev/agent-pane#2953 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
难度 2/5 1-3 小时 新手友好度 78/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
-
calcite-components needs triage refactor
难度 2/5 1-3 小时 新手友好度 75/100
Esri/calcite-design-system#15203 ·