Open epi052 opened 2 years ago
(keeping the suggested code in #1122 in mind as it's a different aspect of the same issue)
Speaking with @willmcgugan, and if I properly comprehended and am correctly recalling the explanation, it looks like the issue here isn't so much about the widget being docked, it's more about it starting out as being display: none
, so the animation doesn't really have a starting position.
While there's no timescale for it, I'll add it to our backlog to look at as Will seemed to think there could be a way to handle this.
that makes sense. The reason I was using the display:none
is that even with an initial offset that's (in my mind) 'off-screen' there's still empty space taken up by the widget.
thanks again for the help!
See also #1123 as something very closely related.
This might have to wait until we review the animation system.
Animations should be set per rule, rather than per widget.
Some preliminary work here https://github.com/Textualize/textual/pull/1740
current: When opening either dock for the first time, there is no animation. The animation only happens after the first in/out of either dock. This happens with inline CSS as well as a CSS file. expected: the docks should be animated on every open/close, including the first
https://user-images.githubusercontent.com/43392618/200075228-33bf9c1a-9539-4f83-9665-628a85ecd72a.mp4