Detect expandable areas

This pull request fixes an issue where the minimum height requirement prevented injection of apps in areas that are actually expandable to hold the content.