Commit cb33e94
committed
Data Browser: correctly count the number of visible rows
- Start counting by 1, so rowCount() matches the row_bottom.
- Use viewport, so we don't have to adjust for the scrollbar.
- Discard from the count rows partially visible (more than a half hidden)
- Do not update the recordset label in refresh, since it returns a bad
number and seems unnecessary.
See issues #3180 and #3176.1 parent 64fbf8f commit cb33e94
2 files changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1033 | 1033 | | |
1034 | 1034 | | |
1035 | 1035 | | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
1040 | 1040 | | |
1041 | 1041 | | |
1042 | | - | |
| 1042 | + | |
1043 | 1043 | | |
1044 | 1044 | | |
1045 | 1045 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
556 | | - | |
557 | 556 | | |
558 | 557 | | |
559 | 558 | | |
| |||
0 commit comments