pazz / alot

Terminal-based Mail User Agent
GNU General Public License v3.0
696 stars 164 forks source link

Focus valign part 2 (#1528 continued) #1535

Closed mrichar1 closed 4 years ago

mrichar1 commented 4 years ago

So thread.py was using self.body.set_focus 'directly' in various places. Changing all references to use self.set_focus as a wrapper ensures every call uses valign='top' and it focuses as expected for the other commands (move next, move next|previous sibling etc).

There's a minor annoyance remaining in that align-to-top doesn't happen for the last message(s) if their total length is less than the window height. The fix I suspect would be to add some padding to the end somehow, but this is probably a separate issue/feature.

pazz commented 4 years ago

thanks guys