I expect that when the content cannot be scrolled,...
# compose
e
I expect that when the content cannot be scrolled, the top app bar behavior that I have set will not cause it to collapse. Is there a solution for this problem? I have nestedScroll set to Scaffold and the inner content is actually a LazyColumn
j
I think that's intentional, if I recall correctly the legacy xml collapsing toolbar also did that when the content didn't need to be scrolled. If you really want to change it you could of course check if the content is scrollable and then disable the scroll behaviour (maybe by checking last visible item) but maybe it's better to just leave it as is and let users who like to collapse it for no reason, collapse it 🙂
👍 2
a
let users who like to collapse it for no reason, collapse it
My opinion as well. People like it when their actions have reactions.