-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In a window, when its size is between whether or not the scrollbar is visible, the style's width determination loops endlessly and the display is too violent. #9076
Comments
サイズ判定の際にスクロールバーの幅を足せば解決 |
これいい加減解決しなきゃな |
一番めんどくさいくないのはoverflow-y: scrollにしてスクロールバーを常に表示させること |
うーん、普通のflexboxでも荒ぶったりするんでなぁ |
2022-11-26.19.33.36.movと思ったけどこれflexboxが原因じゃない? どこでどういうサイズ判定が働いているのかわかってない |
ここら辺かな |
paddingの指定 |
clientWidthにすればいいかな? |
I noticed a similar issue when sending chat messages sometimes on desktop, however, I wasn't able to figure out the reproduction steps. But it seemed to happen when the chat composer box was above the bottom of the screen. If I scrolled up, it would resolve it. I don't know if it's related to this, but I thought I'd mention it in case. |
再現性については、あるサイズにウィンドウを狭めると必ず発生します
逆では(offsetWidthの方がスクロールバーを含んでいる) |
ResizeObserverの反復実行にリミットをつけた方が良さそうだな |
これ本当? |
Safari 15.4から対応なので妥当なコメント https://caniuse.com/mdn-api_resizeobserverentry_borderboxsize |
💡 Summary
ウィンドウで、そのサイズがスクロールバーが表示されるかどうかの間になっているとき、スタイルの幅の判定が無限ループして表示が荒ぶる
p1.a9z.dev.2022-08-30.22-36-46.mp4
🥰 Expected Behavior
表示が固定される
🤬 Actual Behavior
表示が荒ぶる
📌 Environment
Misskey version: Misskey v12.118.1
Your OS: Windows 11
Your browser: Microsoft Edge バージョン 104.0.1293.70 (公式ビルド) (64 ビット)
The text was updated successfully, but these errors were encountered: