yofi icon indicating copy to clipboard operation
yofi copied to clipboard

Add support for adaptive height when using layer shell mode

Open Aleksanaa opened this issue 2 years ago • 4 comments

Rofi has a fixed-height: false option to make the height adaptive, which means when typing to search something, the height of the window gets smaller as candidates shrink, leaving no blank space between last candidate and the bottom. Is it possible to also implement this feature in yofi?

Aleksanaa avatar Feb 08 '23 15:02 Aleksanaa

For the centered window auto-resize implies "jumping" which should be really annoying.

In general it's not really hard to implement and I'd rather prefer height = "auto" instead of separate option.

l4l avatar Feb 08 '23 16:02 l4l

You mean jumping is resizing with no animations? Anyway I'm more annoyed by blank spaces. An implementation in any means would be appreciated.

Aleksanaa avatar Feb 08 '23 16:02 Aleksanaa

Yeah, instant resizing without animation will look terrible. A possible workaround for this one is to have a fixed window offset (window_offsets option) but it still won't be smooth

l4l avatar Feb 08 '23 17:02 l4l