timeline: set adjust flag first

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/900/head
Varun Patil 2023-10-28 13:07:24 -07:00
parent 20d53cf291
commit cc7586af62
1 changed files with 2 additions and 1 deletions

View File

@ -1214,11 +1214,12 @@ export default defineComponent({
// Update size delta for removed rows and remove from day
for (const row of removedRows) {
needAdjust = true;
// Scroll up if if above visible range
if (rowY < scrollTop) {
scrollTop -= row.size;
}
needAdjust = true;
// Remove from day
const idx = day.rows.indexOf(row);