[CLOSED] [2.2 Trunk] Height does not adjust in MessageBox with image contents.
This post-back code used to fit the size of the contents in 1.0. Now it only shows the first 2 lines and the top portion of the image in current Chrome. I haven't tested in other browsers yet.
Code:
// Notify Complete
var more = OrigSize.Width!=calImage.Width || OrigSize.Height!=calImage.Height ?
string.Format( "<br/>Resized Image: {0}x{1}<br/><br/>Upload Hint - resize for faster transfer",
calImage.Width, calImage.Height
) : string.Empty;
X.Msg.Show( new MessageBoxConfig {
Buttons = MessageBox.Button.OK,
Icon = MessageBox.Icon.INFO,
Title = "Success", Width=900,
Message = string.Format( "Uploaded file: {0}<br/>Size: {1}x{2}{3}<br/><br/><img src='{4}'/>",
file, OrigSize.Width, OrigSize.Height, more, ImagePath.GetUrlPath( Request, calImage.FileName) ),
Handler="document.location=document.location;"
} );
Any thoughts how I can get the height to fit the size of the actual full message contents without specifying a height?