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

DietPi-Globals | whiptail has no scrollbar #2947

Open
MichaIng opened this issue Jul 1, 2019 · 2 comments
Open

DietPi-Globals | whiptail has no scrollbar #2947

MichaIng opened this issue Jul 1, 2019 · 2 comments
Labels
External bug 🐞 For bugs which are not caused by DietPi. Visual 🌹 Issues affecting only the beauty of menus and output, but not the functionality Waiting for external fix ⏳

Comments

@MichaIng
Copy link
Owner

MichaIng commented Jul 1, 2019

This is an old issue, but I just fell over this again. I actually wanted to automatically add a scrollbar to G_WHIP_MSG if text is too long to fit on the screen. By this we could remove G_WHIP_SCROLLBOX and rely on the anyway made Y size estimation.

Strange is now, that the scrollbars do not appear with the --scrolltext flag. It took me a while to find out why some manual whiptail test succeed with this while G_WHIP does not. The reason is that the scrollbar starts AFTER the text. So if the text fills the whole whiptail y size, the scrollbars are completely hidden:
whiptail

This is odd, since the scrollbar does not have any point, if the text does not fill the whole whiptail, as then there is nothing to scroll 😕. I am totally confused now as this feature has no point at all then, but can't believe that this has never been fixed for several years.
EDIT: Without --scrolltext, scrolling is not possible at all, hence the functional part of the feature works, but the visual part (scroll bars) not as intended.

If I oversee something, please give me a hint, otherwise we can remove G_WHIP_SCROLLBOX anyway and should better report this bug to the maintainer, if not already done for a long time. But couldn't find it at least on quick search.

Same on Buster btw...

@MichaIng MichaIng added External bug 🐞 For bugs which are not caused by DietPi. Visual 🌹 Issues affecting only the beauty of menus and output, but not the functionality labels Jul 1, 2019
@MichaIng
Copy link
Owner Author

MichaIng commented Nov 6, 2019

Seems to have worked well back in end of 2017, not sure which distro (bottom of page): https://www.krazyworks.com/whiptail-and-dialog-snippets/

Same error reported here little earlier: https://stackoverflow.com/a/46146021
Probably not whiptail bug but newt bug.

Strange that this is so rarely mentioned. Will do a bugs.debian.org report later: https://bugs.debian.org/cgi-bin/pkgreport.cgi?dist=unstable;package=whiptail

@MichaIng
Copy link
Owner Author

@MichaIng MichaIng changed the title DietPi-Globals | G_WHIP_SCROLLBOX has no scrollbar DietPi-Globals | whiptail has no scrollbar Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External bug 🐞 For bugs which are not caused by DietPi. Visual 🌹 Issues affecting only the beauty of menus and output, but not the functionality Waiting for external fix ⏳
Projects
None yet
Development

No branches or pull requests

1 participant