You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by Mrcubix July 11, 2023
For some reasons, the selector :nth-last-child(1) seems to only be evaluated properly at first, any additions done after the Window is shown will result in an incorrect behavior.
in this exemple, the last element is supposed to have a margin of 0, so that the scrollbar doesn't show up until another element is added.
Note that the orginal discussion was written in an earlier version, but the issue is still valid to this day
about the same styling works for ItemsControl, however, ItemsControl suffer from a worse issue explained here #12137
The text was updated successfully, but these errors were encountered:
Mrcubix
changed the title
[11 Nightly] :nth-last-child(1) does not seem to be working properly on ItemsRepeater
[11 Nightly] :nth-last-child(1) Only evaluated once at runtime
Oct 16, 2023
Discussed in AvaloniaUI/Avalonia#12147
Originally posted by Mrcubix July 11, 2023
For some reasons, the selector
:nth-last-child(1)
seems to only be evaluated properly at first, any additions done after the Window is shown will result in an incorrect behavior.in this exemple, the last element is supposed to have a margin of 0, so that the scrollbar doesn't show up until another element is added.
the same behavior can be obtained using this repo: https://github.com/Mrcubix/Avalonia-Last-Nth-Child-Selector-Issue
Note that the orginal discussion was written in an earlier version, but the issue is still valid to this day
about the same styling works for
ItemsControl
, however,ItemsControl
suffer from a worse issue explained here #12137The text was updated successfully, but these errors were encountered: