I just realized that maintaining distance to bottom is not strictly compatible with revealing the cursor, as if the cursor were initially hidden (before panel expand)then pushing the cursor up by the panel height will not reveal the cursor.  We'll have to decide whether we'd want to reveal the cursor in such a case by scrolling the minimal amount needed to show the cursor. 