Skip to main content
January 6, 2009
Question

Whitespace at the top of cfwindow popups

  • January 6, 2009
  • 1 reply
  • 384 views
I have several instances where I am using cfwindow to create a window and the popup comes with a large amount of whitespace above the page, thus pushing the page just below the size of the window.
If the popup page is resized just a tiny bit, the page 'jumps' into place without whitespace and all works as was originally intended.
Any thoughts on how to get rid of this problem would be greatly appreciated.
    This topic has been closed for replies.

    1 reply

    Inspiring
    January 6, 2009
    Look at the code that is generating the content and look for ways to reduce the whitespace. cfsilent is my favourite method.
    January 6, 2009
    I have tried the cfsilent.
    When the popup page is opened in a window of its own; there is no whitespace at the top.
    And the whitespace disappears once the window is manually adjusted, so it is not true whitespace, but only present temporarily.
    The code I use to build the popup is:

    <cfwindow center="true" width="800" height="600" name="WinMyIdea" title="PO List" refreshOnShow="true" initshow="false" modal="true" source="index.cfm?action=compilation_add_po&ID={comp:DYN_FORM_VAL}" />

    <script>
    <!--
    function showIdea(theID) {
    comp.DYN_FORM_VAL.value = theID;
    ColdFusion.Window.show('WinMyIdea');
    }
    -->
    </script>