keep container div's width under select mode

under select mode, the container div's width may be changed, fix this issue