added max-dimension rules for crop container (#15398)

https://redmine.ff0000.com/issues/15398