LPS-46244 - In the device preview, when dragging the custom width vertically, the height is incremented and vice versa

Hi @jonmak08,

Attached is an update for https://issues.liferay.com/browse/LPS-46244.

There were actually a few things going on here that were affecting the device preview and all dialogs in portal. I'll add some line comments explaining them.

Please let me know if there are any issues.

Thanks!