-
Notifications
You must be signed in to change notification settings - Fork 301
Conversation
because position fixed does not respect overflow
Codecov Report
@@ Coverage Diff @@
## master #2495 +/- ##
==========================================
+ Coverage 44.2% 44.24% +0.04%
==========================================
Files 344 345 +1
Lines 13886 13937 +51
Branches 1829 1830 +1
==========================================
+ Hits 6138 6167 +29
- Misses 7508 7530 +22
Partials 240 240
Continue to review full report at Codecov.
|
separate out marker creation into a separate method add keys to error markers
would appreciate a review @CrossR or @TalAmuyal, this fixes a UI issue which was really annoying me which is that there was a lag when resizing the window so the scrollbar would visibly be slow to move when resizing the original issue has a GIF also fixed an issue where error markers weren't being shown properly on the scrollbar |
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.
Code changes look good, and works fine from my testing!
Feel free to just stick me as a reviewer on any PRs, sometimes I miss the swap from WIP to non-WIP.
This PR fixes onivim#2114 and a few issues with the buffer scroll bar The first issue relates to onivim#2114 which was the fact the the buffer bar lagged behind if the window was resized. The specific change that fixes this is changing the position from `absolute` to `fixed` The other issue was that the error markers weren't rendering correctly i.e. only one error marker was shown in the buffer because the `uniqBy` function was filtering by Id but actually there was no id prop. Ive changed this to filter by line so the scroll bar just shows errors by line, meaning you now get multiple errors in the scroll bar based on position Also took the opportunity to change the components to styled components with dynamic attrs and added keys to the error components
This PR fixes #2114 and a few issues with the buffer scroll bar
The first issue relates to #2114 which was the fact the the buffer bar lagged behind if the window was resized. The specific change that fixes this is changing the position from
absolute
tofixed
The other issue was that the error markers weren't rendering correctly i.e. only one error marker was shown in the buffer because the
uniqBy
function was filtering by Id but actually there was no id prop. Ive changed this to filter by line so the scroll bar just shows errors by line, meaning you now get multiple errors in the scroll bar based on positionAlso took the opportunity to change the components to styled components with dynamic attrs and added keys to the error components