fix really min/max visibility with ResizeMode thx @flagbug