What behavior are you referring to? The following live demo demonstrates how the dimensions of the box are retained when resizing the window horizontally. When resizing vertically, the cube scales. If I understand you correctly, you want to scale the cube when resizing the window horizontally, right?