count minimized panel correctly
target cannot be less than minWidth