jQWidgets Forums

jQuery UI Widgets Forums Layouts Docking Redraw docked panel content

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 12 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Redraw docked panel content #11251

    Hi All

    I have a docking panel setup where a user action can increase/decrease the height of a docked panel.

    This is done by changing the height of the panel like so:
    $(“#ActivityDock”).height($(“#ActivityDock”).height() + 10)

    this works fine and adjusts the panel height but I would also like the content of the panel to redraw
    so it populates the newly available space and removes scrollbars if appropriate.

    at present to get the redraw I am doing a collapse then expand of the panel:
    setTimeout(function () { $(‘#docking’).jqxDocking(‘collapseWindow’, ‘ActivityDock’) }, 10);
    setTimeout(function () { $(‘#docking’).jqxDocking(‘expandWindow’, ‘ActivityDock’) }, 200);

    Can you suggest a better way, I seem to have tried all sorts but nothing else works.
    Thanks.

    Redraw docked panel content #11305

    Dimitar
    Participant

    Hello phil.thompson,

    To change the height of a panel in jqxDocking, you should do the following:

                    $("#ActivityDock").jqxWindow({ height: $("#ActivityDock").height() + 10 });

    This way, the content of the panel resizes properly.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.