Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Christoffer Andersen 23 posts 53 karma points
    Mar 16, 2010 @ 09:58
    Christoffer Andersen
    0

    possible umbraco popup bug

    Greetings

    Upon clicking a button I open a new modal from js, and given the following code:

    StringBuilder sb = new StringBuilder();
    sb.AppendLine(@"<script type=""text/javascript"">");
    sb.AppendLine("top.openModal('plugins/testMail.aspx?id=" + 1 + "', 'Send delayed mail', 200,500);");
    sb.AppendLine("</script>");
     Page.ClientScript.RegisterStartupScript(this.GetType(), "viewReport", sb.ToString());

    it loads smoothly as shown on picture in link

    However if I change the heigth of the modal to 400, which logically shouldn't do much more than double the heigth of the modal window.

    This is done with the following code:

    StringBuilder sb = new StringBuilder();
    sb.AppendLine(@"<script type=""text/javascript"">");
    sb.AppendLine("top.openModal('plugins/testMail.aspx?id=" + 1 + "', 'Senddelayed mail ', 400,500);");
    sb.AppendLine("</script>");
     Page.ClientScript.RegisterStartupScript(this.GetType(), "viewReport", sb.ToString());

    This however results in this. Here the content "exceeds" the heigth and width of the modal window.

    Is there anything I need to dissable/enable to fix this little annoying problem?

    Thx in advance

    Christoffer Andersen

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies