Commit 93ad5d0
committed
msglist: Always place the sliver boundary at a message
This brings the behavior closer to what we'll want in the future,
and so allows the next commit affecting `middleItem` to be NFC.
This itself is practically NFC. It's entirely NFC except in the
case where there are no messages, so that `items` consists only of a
history-start marker; and in that case, it causes that marker to go
in the top sliver rather than the bottom.
I believe the only observable effect of that change is that if the
viewport is so very short that the history-start marker is too tall
to fit (so that it's possible to scroll when that's the only item),
then the initial scroll position will be different.1 parent 88be31f commit 93ad5d0
File tree
2 files changed
+25
-1
lines changed- lib/model
- test/model
2 files changed
+25
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
165 | 186 | | |
166 | 187 | | |
167 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2010 | 2010 | | |
2011 | 2011 | | |
2012 | 2012 | | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
2013 | 2016 | | |
2014 | 2017 | | |
2015 | 2018 | | |
| |||
0 commit comments