zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
19.38k stars 610 forks source link

zj run --floating --width 50% --height 100% -x 50% -y 0% -- terminal does not respect y 0% #3447

Open DRKolev-code opened 1 week ago

DRKolev-code commented 1 week ago

Basic information

zellij --version: 0.40.0

stty size: 49 176

uname -av or ver(Windows): Darwin FVFFV88RQ05F 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:16:51 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8103 arm64

Issue description

When creating a new floating pant with y 0% it does create a floating pane that starts from the top.

image

Minimal reproduction

Tested on Windows Terminal and iterm2.

zellij run --floating --width 50% --height 100% -x 50% -y 0% -- terminal

Zykino commented 1 week ago

Workaround: set y to "0" instead of "0%": zellij run --floating --width 50% --height 100% -x 50% -y 0 -- htop

I was already in half split I did not understood what happened so use at your own risk :sweat_smile:

DRKolev-code commented 1 week ago

This does indeed work. The bug must be specifically with percentages.