Commit a38adee
committed
autofilter: try to show same row range after filter application
problem:
when autofilter is applied sheet reset to view the first row(i.e row 0)
very inconvenient with big sheets to go and find the row you were looking at
now after this patch
when autofilter is applied we try to show row which is in current view and will
also be visible after applying the filter. In case if no row will be visible after
filter from current view we show the next visible row
example 1:
our current view is showing row 550 to 580
after autofilter row 570 is first visible row in this range
so the view will reset to row 570 as first row in the view
example 1:
our current view is showing row 550 to 580
after autofilter no row is visible in this range
row 603 is first visible row afte this range
so the view will reset to row 603 as first row in the view
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I02a7315e7a42ef1f0a6f5dc4ab4be05b8aa6f5a81 parent fa03a2e commit a38adee
2 files changed
+65
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
805 | | - | |
806 | | - | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
807 | 816 | | |
808 | 817 | | |
809 | 818 | | |
| |||
931 | 940 | | |
932 | 941 | | |
933 | 942 | | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
934 | 947 | | |
935 | 948 | | |
936 | 949 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
212 | 257 | | |
213 | 258 | | |
214 | 259 | | |
| |||
507 | 552 | | |
508 | 553 | | |
509 | 554 | | |
| 555 | + | |
510 | 556 | | |
511 | 557 | | |
512 | 558 | | |
| |||
531 | 577 | | |
532 | 578 | | |
533 | 579 | | |
| 580 | + | |
| 581 | + | |
534 | 582 | | |
535 | 583 | | |
536 | 584 | | |
| |||
595 | 643 | | |
596 | 644 | | |
597 | 645 | | |
598 | | - | |
599 | | - | |
| 646 | + | |
| 647 | + | |
600 | 648 | | |
601 | 649 | | |
602 | 650 | | |
| |||
0 commit comments