Skip to content

Commit

Permalink
Improve Screens_deleteUpdateRows
Browse files Browse the repository at this point in the history
  • Loading branch information
fgl27 committed Aug 6, 2023
1 parent b5dc591 commit 0d47d9d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/specific/Screens.js
Original file line number Diff line number Diff line change
Expand Up @@ -2556,7 +2556,14 @@ function Screens_deleteUpdateRows(key) {

if (!ScreenObj[key].Cells[ScreenObj[key].posY + 1] && ScreenObj[key].posY > 1) {
//Force refocus of the screen and add missing rows
ScreenObj[key].addrow(true, ScreenObj[key].posY - 1, key, true);

if (ScreenObj[key].screenType === 4) {
//channel screen
ScreenObj[key].addrow(true, ScreenObj[key].posY - 2, key, true);
} else {
//other screens
ScreenObj[key].addrow(true, ScreenObj[key].posY - 1, key, true);
}
} else if (!ScreenObj[key].Cells[ScreenObj[key].posY + 1]) {
//Force screen focus position
ScreenObj[key].ScrollDoc.style.transform = '';
Expand Down

0 comments on commit 0d47d9d

Please sign in to comment.