Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forms position and symmetry #11

Open
LamaKing opened this issue Mar 14, 2017 · 0 comments
Open

Forms position and symmetry #11

LamaKing opened this issue Mar 14, 2017 · 0 comments
Labels

Comments

@LamaKing
Copy link
Member

The forms to EditUserPwdForm, DelUserForm and RenewForm are created at a fixed position.
If these forms are opened in a "narrow" terminal window, they appear truncated and are unusable.

Moreover, they always spawn at the same coordinates and not in the center of the window. This hurts my need for symmetry.

I'm not an expert on Npyscreen, but I've tried to overcome this bug by retrieving the terminal size from the shell and creating them at (terminal_size-dim)/2, both in x and y. It seems to do the job, even though it's pretty rough.
You can see the cod in the branch Silva, it's just a scratch, any comment in welcome!

@LamaKing LamaKing added the bug label Mar 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant