-
Notifications
You must be signed in to change notification settings - Fork 829
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
some wack(ier) buisness going on #5353
Comments
Could you give me a single example where the output is not what you would expect. Because this looks correct to me. |
apologies for the shitty explanation this illustrates it better. pt3.mp4instead of mirroring the image on the right it can instead only be docked to the corners, the position defined by align is being overridden instead of appended by dock (unless this is intentional behavior) |
Docking trumps alignment of the parent. When you dock something, it takes the widget out of the usual layout and anchors it to an edge. If you want it to appear in the middle of the vertical edge, you could dock a container and set the alignment on the app. In general though, you shouldn't think of docking as an alignment mechanism. It's purpose is mainly to divide the screen. |
So if i needed a static sidebar (docked so it dosent scroll) in the center of the vertical axis of the screen, is there a way of doing that without creating another container in which to hold it, eg (I dont think offset-y accepts scalers but) dock: right; Is there a simple solution like that available or is making another container always necessary? |
Offset does accept scalars, but that wouldn't centre it. You will need another container. You could use containers.Middle I get the impression you at trying to avoid that, but it is the best solution and only requires a single additional line. |
allg, ty |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
dock not functioning correctly, can only align widgets to corners(?) for some reason. this is using the 88.1 hotfix (thanks for that btw)
wacky vid part 2..
https://github.com/user-attachments/assets/bdfaa9c4-a608-4e02-921a-7724805f2401
the apparently cursed file, again
test2.zip
The text was updated successfully, but these errors were encountered: