Dropdown & Context Menu - Incorrect Position

  •  03-13-2008, 12:50 PM

    Dropdown & Context Menu - Incorrect Position

    Hi everyone, 
     
    When CuteEditor is placed inside a scrollable DIV, if the DIV is not at its original (Top) position, all dropdowns and context menus will be off. (There's a similar issue with the ASP .NET version of CuteEditor <http://cutesoft.net/forums/thread/37870.aspx>. Not sure if they're related. FYI.)
     
    Is there a workaround on this issue? I must put CuteEditor inside a scrollable DIV...
     
    The first image shows that, when a "scrollable" DIV is at its top position. Things work fine:
     
     
    The second image shows that, as you scroll down in the DIV, the context menu and the dropdown's position will be off. (In the screenshot, I clicked the Code Snippet dropdown, but the actual "dropdown menu" was displayed like couple lines after.)
     
     
    Here's the code:
    <!-- #include file="CuteEditor_Files/include_CuteEditor.asp" -->
    <html>
    <body>
    <div style="width:800; height:400; overflow:scroll">
    <p />
    Scroll to the bottom, and then click on any of the dropdowns<br />
    or context menu. Their position will be off.<p />
    <p />
    <%

    Dim editor
    Set editor = New CuteEditor
    editor.ID = "Comment"
    editor.Text = ""
    editor.FilesPath = "CuteEditor_Files"
    editor.EditorBodyStyle = "font:normal 12px arial;"
    editor.EditorWysiwygModeCss = "asp.css"

    editor.Draw()                 
    %>
    <p />
    Give it a try.<br />
    <p />
    </div>
    </body>
    </html>

     
     
    Thanks for the help!
    KennyW
View Complete Thread