[CLOSED] [2.2 Trunk] Height does not adjust in MessageBox with image contents.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [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.

            // 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?
    Last edited by Daniil; Jun 18, 2013 at 4:01 AM. Reason: [CLOSED]

Similar Threads

  1. Replies: 5
    Last Post: Jun 06, 2013, 5:41 AM
  2. Replies: 2
    Last Post: Apr 15, 2013, 7:46 AM
  3. [CLOSED] Combo list adjust
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 15, 2012, 2:07 PM
  4. [CLOSED] CheckboxGroup Auto-Width/Height adjust
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 21, 2010, 10:05 AM
  5. How to adjust the distance of fieldlabel and field?
    By GeoffreyRen in forum 1.x Help
    Replies: 2
    Last Post: Jun 23, 2009, 3:12 AM

Posting Permissions