I am facing an issue with a specific style I have applied:
.vertical-rotate{
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.00000000,
M12=-1.00000000, M21=1.00000000, M22=0.00000000,DX=32,sizingMethod='auto expand');
}
This particular style is dynamically applied to images using jQuery:
$("#rotate").click(function(e) {
e.preventDefault();
$("img").addClass("vertical-rotate"); });
The issue arises when non-square images are used, as the DOM renderer fails to recognize the altered aspect ratio. Consequently, the image, which was previously centered, now aligns against the right edge of its containing div.
To clarify, this problem does not occur in IE9 or other modern browsers that use their built-in rotating functions. Any suggestions on how I can instruct IE8 to readjust the image position correctly?