Fix for #2900

The original if statement would add the scrollable area incorrectly.