timeline: set adjust flag first
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/900/head
parent
20d53cf291
commit
cc7586af62
|
@ -1214,11 +1214,12 @@ export default defineComponent({
|
||||||
|
|
||||||
// Update size delta for removed rows and remove from day
|
// Update size delta for removed rows and remove from day
|
||||||
for (const row of removedRows) {
|
for (const row of removedRows) {
|
||||||
|
needAdjust = true;
|
||||||
|
|
||||||
// Scroll up if if above visible range
|
// Scroll up if if above visible range
|
||||||
if (rowY < scrollTop) {
|
if (rowY < scrollTop) {
|
||||||
scrollTop -= row.size;
|
scrollTop -= row.size;
|
||||||
}
|
}
|
||||||
needAdjust = true;
|
|
||||||
|
|
||||||
// Remove from day
|
// Remove from day
|
||||||
const idx = day.rows.indexOf(row);
|
const idx = day.rows.indexOf(row);
|
||||||
|
|
Loading…
Reference in New Issue