Don't allow resizing panels when it doesn't make sense.