selectrum icon indicating copy to clipboard operation
selectrum copied to clipboard

Hscroll issues

Open aaronjensen opened this issue 3 years ago • 5 comments

The input line gets shifted way too early:

CleanShot 2021-02-09 at 18 59 14

Sometimes the candidates get shifted to the middle of the screen:

CleanShot 2021-02-09 at 18 57 41@2x

aaronjensen avatar Feb 10 '21 01:02 aaronjensen

Thanks, we can add an option for the first or maybe make use of hscroll-margin like you suggested in the other issue. For the shifted candidates I would need a recipe to reproduce this seems to be an edge case because it doesn't happened with the examples I tried.

clemera avatar Feb 11 '21 12:02 clemera

The easiest way to reproduce it is to have some long content in the input line and then slowly resize the emacs frame with the mouse. I’m quite sure I’ve seen it happen naturally without a resize of the frame, but I haven’t seen it recently.

aaronjensen avatar Feb 11 '21 13:02 aaronjensen

Resizing the frame with the mouse vertically has other problems but I can't reproduce the candidate misplacement when resizing it horizontally. Maybe this has only been a problem in older older versions if you can reproduce it with the current version please provide a recipe using emacs -Q.

clemera avatar Feb 11 '21 13:02 clemera

I don't know how I get Emacs into the state, but this repros it for me, but not if I restart emacs. So, after some time, this starts happening. I realize that's not super helpful, but maybe it'll help someone at some point 😄 I'll keep trying to repro from emacs -Q

(completing-read "Test: " '("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxone" "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxtwo") nil nil "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
CleanShot 2021-02-11 at 10 06 33@2x

aaronjensen avatar Feb 11 '21 16:02 aaronjensen

Okay, thanks, weird that it happens after some time only, I wonder what this is about :eyes:

clemera avatar Feb 11 '21 16:02 clemera