-
-
Notifications
You must be signed in to change notification settings - Fork 651
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
feat: add scrollLeftTop for sheet snapshot #2414
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #2414 +/- ##
==========================================
- Coverage 27.12% 27.11% -0.02%
==========================================
Files 1653 1653
Lines 83228 83300 +72
Branches 17234 17254 +20
==========================================
+ Hits 22574 22585 +11
- Misses 60654 60715 +61 ☔ View full report in Codecov by Sentry. |
View Deployment
🥐 🍔 🥓 🥗 🥘 🌯 🍚 🍛 🍖 🍭 🍧 🍝 🥪 🥖 🍪 |
6bbdc5f
to
9d09327
Compare
* feat: add scrollLeftTop for sheet snapshot * fix: set-frozen test case need ScrollManagerService -> SheetSkeletonManagerService * fix: switch tab sync state in scene and viewport fix: revert back _updateViewZoom chore: import SHEET_VIEWPORT_KEY from engine-render
chore: do not change scrollXY when viewport width is negative
9d09327
to
796352c
Compare
} | ||
|
||
removeScrollBar() { | ||
this._scrollBar = null; | ||
} | ||
|
||
/** | ||
* 和 resetSizeAndScrollBar 不同 | ||
* 和 resetCanvasSizeAndScrollbar 不同 | ||
* 此方法是调整冻结行列设置时 & 初始化时触发, resize window 时并不会触发 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommended comments are all changed to English
796352c
to
4d7082b
Compare
* feat: add scrollLeftTop for sheet snapshot (#2348) * feat: add scrollLeftTop for sheet snapshot * fix: set-frozen test case need ScrollManagerService -> SheetSkeletonManagerService * fix: switch tab sync state in scene and viewport * fix: revert back _updateViewZoom * chore: import SHEET_VIEWPORT_KEY from engine-render * fix: when update scroll should consider scale factor * chore: do not change scrollXY when viewport width is negative * test: should use sheetSkService from cur render
close #2116
#2116
Add scrollLeft scrollTop to sheet snapshot after scroll command, and restore the scrolling state when changing tabs of sheet.
check scrollLeft and scrollTop value in
univer._univerInstanceService.getFocusedUnit()._snapshot
Pull Request Checklist