1. merge FixMinVflex and FixMinHflex into one function
2. fix bandpopup's flex with min issue