jQuery UI Widgets Forums Layouts DockPanel Scroll bar and Resize issue with panel in Dockpanel

This topic contains 1 reply, has 1 voice, and was last updated by  Rob 10 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • Rob
    Participant

    Hi,
    The following code demonstrated 2 issues, as where the first issue is the most important for me to be solved.
    1. the scroll bar of the panel is not properly positioned when loading the webpage. The scroll bar looks ok after manually resizing the browser-window.
    2. It looks like margins appear on left, bottom and right side of about 8 pixels when manually resizing the webbroswer going from about 1000×750 to a bit smaller in size.

    
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="utf-8">
        <link rel="stylesheet" href="jqwidgets/styles/jqx.base.css" type="text/css" />
        <link rel="stylesheet" href="jqwidgets/styles/jqx.classic.css" type="text/css" />
        <script type="text/javascript" src="JavaScript/jquery-1.11.1.min.js"></script>
        <script type="text/javascript" src="jqwidgets/jqx-all.js"></script>
        <script type="text/javascript">
            var _jqxRespose;
    
            $(window).bind("resize", function () {
                "use strict";
                _jqxRespose = new $.jqx.response();
                $("#jqxdockpanel").jqxDockPanel({ width: _jqxRespose.viewPort.width, height: _jqxRespose.viewPort.height });
            });
    
            $(document).ready(function () {
                "use strict";
                _jqxRespose = new $.jqx.response();
                $("#jqxdockpanel").jqxDockPanel({ width: _jqxRespose.viewPort.width, height: _jqxRespose.viewPort.height, lastchildfill: true });
                $('#helpWindow').jqxPanel({ width: '100%', height: '100%', autoUpdate: 'false' });
            });
        </script>
    </head>
    
    <body style="margin: 0; padding: 0;">
        <div id='jqxWidget'>
            <div id='jqxdockpanel' style="margin-left: auto; margin-right: auto;">
                <div id='headerDock' dock='top' style='background: white; height: 77px;'>
                    HEADER
                </div>
                <div id='menudock' dock='top' style='background: whitesmoke; height: 35px;'>
                    MENU
                </div>
                <div id='leftpane' dock='left' style="width: 50%; background-color: darkgray; min-width: 700px; padding: 3px;">
                    LEFT PANE
                </div>
                <div id='rightpane' dock='right' style="background-color: lightgray;">
                    <div id="helpWindow">
                        <!--RIGT PANE -->
                        <h3>Scheduled task assignment:</h3>
                        <p>
                            "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
                        </p>
                        <h3>Scheduled tasks overview:</h3>
                        <p>
                            At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </body>
    </html>
    

    Rob
    Participant

    SOLVED 🙂

    A padding in a <div dock=…> declaration resulted in unexpected behaviour / wrong size calculation of the docket element.

    From the above code it’s in this line:

    
      <div id='leftpane' dock='left' style="width: 50%; background-color: darkgray; min-width: 700px; padding: 3px;">
         LEFT PANE
      </div>
    

    @jqxwidges team, maybe someting to mention in the documentation.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.