Restricts scroll view resize handling only when scrollable in that direction (avoids situations where the content has a flexible size).