Ticket #3731 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

dialog window can't be closed

Reported by: dypa Owned by:
Priority: critical Milestone: 1.7
Component: ui.dialog Version: 1.6rc4
Keywords: дибилы :) Cc:
Blocking: Blocked by:

Description

  1. open the page  http://ui.jquery.com/demos/dialog
  2. drag dialog window to the top of the page while dialog will not be out side of the window

the same problem when dialog window is draged out of the body width && height (apperes scrool)

sorry for my bad english

Attachments

1.png Download (139.0 KB) - added by dypa 5 years ago.
2.png Download (137.0 KB) - added by dypa 5 years ago.

Change History

Changed 5 years ago by dypa

Changed 5 years ago by dypa

comment:1 Changed 5 years ago by scott.gonzalez

  • Milestone changed from TBD to 1.6

Suggested solution:

on drag stop:

  • if the top of the dialog is above the top of the document, move the top to 0
  • if the right side of the dialog is to the left of the left side of the document, move the left to 0
  • if the left side of the dialog is to the right of the right side of the document, move the left to document width - dialog width

I'm not sure the last rule is needed as the document will normally stretch if the dialog is dragged to the right.

comment:2 Changed 5 years ago by scott.gonzalez

This could probably also be handled by setting containment to document when initializing the draggable.

comment:3 Changed 5 years ago by scott.gonzalez

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r1486.

Note: See TracTickets for help on using tickets.