update max-width through width constraint