box-cli-maker icon indicating copy to clipboard operation
box-cli-maker copied to clipboard

[BUG] TopBar/BottomBar ain't aligned with rest of the Box when they have tabbed lines and `TitlePos` isn't `Inside`

Open Delta456 opened this issue 3 years ago • 1 comments

Solving this error is very hard due to dependence on the number of tabs, length of string and b.Px and a magical number from which we will have to add/sub the title length according but this can only be found on during runtime according to my observations and experimenting so this value is dynamic.

For now I will have to put a panic when TitlePos isn't Inside and title has tab lines. I know doing this is a pretty big limitation as tab lines are frequently used but please understand that I cannot figure this out for now so just use spaces instead for now.

I would like someone to help me on this issue if they want do. I will be grateful!

Delta456 avatar Jan 15 '22 12:01 Delta456

Fixed this on my own! Bless xstrings library.

Delta456 avatar Feb 03 '22 11:02 Delta456