Fixed a bug where modal height resizing was getting reversed when in RTL mode