jQWidgets Forums

jQuery UI Widgets Forums Layouts Docking Widget drops outside drop-targets

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 12 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Widget drops outside drop-targets #14623

    Hi

    I have downloaded the docking demo and have it running successfully on a development machine. It all runs fine expect for the fact that I can drop a widget outside of any of the defined drop targets. Is there any way to enforce this so that a user cannot drop a widget in some random location and is constrained to only drop a widget in the

    docks?

    Many thanks.

    Widget drops outside drop-targets #14634

    Peter Stoev
    Keymaster

    Hi malcolmswaine,

    By default, the docking windows can be dragged and dropped anywhere on the screen. If you want to restrict the drop only to the docking zones, set the widget’s “mode” property to “docked” when you initialize the widget.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Widget drops outside drop-targets #14652

    I am using the following syntax:

    $(‘#docking’).jqxDocking({ width: ‘100%’, theme: theme, orientation: ‘horizontal’, mode: ‘docked’ });

    is that correct for the scenario described?

    Many thanks.

    Widget drops outside drop-targets #14748

    Peter Stoev
    Keymaster

    Hi malcolmswaine,

    Yes, the mode property should be set to “docked”.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.