-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allowing dialogs to be inside a container #1513
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
divdavem
force-pushed
the
dialogContainer
branch
from
July 28, 2015 16:27
d5ea9d6
to
7a6b341
Compare
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Jul 28, 2015
…utilities This commit fixes the following issues: - when dragging an element inside a container, the borders of the container were not properly taken into account to limit the area in which the element can be dragged - when resizing an element outside its boundaries, the size could increase at the opposite side of the mouse instead of being properly limited, because the aria.utils.Dom.fitInside method was called (which only changes the position, and keeps the size) whereas it is needed to limit the size when the boundaries are reached.
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Jul 28, 2015
MovableDialogTestCase was part of ContainerTestSuite instead of being part of the MovableDialogTestSuite.
divdavem
force-pushed
the
dialogContainer
branch
from
July 28, 2015 17:06
7a6b341
to
294440e
Compare
…utilities This commit fixes the following issues: - when dragging an element inside a container, the borders of the container were not properly taken into account to limit the area in which the element can be dragged - when resizing an element outside its boundaries, the size could increase at the opposite side of the mouse instead of being properly limited, because the aria.utils.Dom.fitInside method was called (which only changes the position, and keeps the size) whereas it is needed to limit the size when the boundaries are reached.
MovableDialogTestCase was part of ContainerTestSuite instead of being part of the MovableDialogTestSuite.
This commit adds a new `container` property for the `@aria:Dialog` widget. If this property is defined, the dialog is inserted as a child of the corresponding DOM element (which must have the `position:relative` or `position: absolute` style), and the dialog can only be moved or resized inside this element. If the dialog is modal, the modal mask is only above the container, and focusing elements outside the container is still possible. close ariatemplates#1513
divdavem
force-pushed
the
dialogContainer
branch
from
July 29, 2015 12:23
cc95a09
to
ef6ceed
Compare
@divdavem this PR is fine for me. Don't squash the commits to push to master. Leave it like that. |
@benouat Thank you for your review! |
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Jul 30, 2015
…utilities This commit fixes the following issues: - when dragging an element inside a container, the borders of the container were not properly taken into account to limit the area in which the element can be dragged - when resizing an element outside its boundaries, the size could increase at the opposite side of the mouse instead of being properly limited, because the aria.utils.Dom.fitInside method was called (which only changes the position, and keeps the size) whereas it is needed to limit the size when the boundaries are reached. (cherry picked from commit 97fce1a) Conflicts: src/aria/utils/dragdrop/Drag.js src/aria/utils/resize/Resize.js
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Jul 30, 2015
MovableDialogTestCase was part of ContainerTestSuite instead of being part of the MovableDialogTestSuite. (cherry picked from commit 36dfd72)
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Jul 30, 2015
This commit adds a new `container` property for the `@aria:Dialog` widget. If this property is defined, the dialog is inserted as a child of the corresponding DOM element (which must have the `position:relative` or `position: absolute` style), and the dialog can only be moved or resized inside this element. If the dialog is modal, the modal mask is only above the container, and focusing elements outside the container is still possible. close ariatemplates#1513 (cherry picked from commit ef6ceed) Conflicts: src/aria/popups/Popup.js src/aria/popups/PopupManager.js src/aria/utils/resize/Resize.js src/aria/widgets/container/Dialog.js test/aria/widgets/container/dialog/DialogTestSuite.js test/attester-nophantom.yml test/attester-packaged.yml
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Jul 30, 2015
This commit adds a new `container` property for the `@aria:Dialog` widget. If this property is defined, the dialog is inserted as a child of the corresponding DOM element (which must have the `position:relative` or `position: absolute` style), and the dialog can only be moved or resized inside this element. If the dialog is modal, the modal mask is only above the container, and focusing elements outside the container is still possible. close ariatemplates#1513 (cherry picked from commit ef6ceed) Conflicts: src/aria/popups/Popup.js src/aria/popups/PopupManager.js src/aria/utils/resize/Resize.js src/aria/widgets/container/Dialog.js test/aria/widgets/container/dialog/DialogTestSuite.js test/attester-nophantom.yml test/attester-packaged.yml
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Jul 30, 2015
…utilities This commit fixes the following issues: - when dragging an element inside a container, the borders of the container were not properly taken into account to limit the area in which the element can be dragged - when resizing an element outside its boundaries, the size could increase at the opposite side of the mouse instead of being properly limited, because the aria.utils.Dom.fitInside method was called (which only changes the position, and keeps the size) whereas it is needed to limit the size when the boundaries are reached. (cherry picked from commit 97fce1a) Conflicts: src/aria/utils/dragdrop/Drag.js src/aria/utils/resize/Resize.js
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Jul 30, 2015
MovableDialogTestCase was part of ContainerTestSuite instead of being part of the MovableDialogTestSuite. (cherry picked from commit 36dfd72)
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Jul 30, 2015
This commit adds a new `container` property for the `@aria:Dialog` widget. If this property is defined, the dialog is inserted as a child of the corresponding DOM element (which must have the `position:relative` or `position: absolute` style), and the dialog can only be moved or resized inside this element. If the dialog is modal, the modal mask is only above the container, and focusing elements outside the container is still possible. close ariatemplates#1513 (cherry picked from commit ef6ceed) Conflicts: src/aria/popups/Popup.js src/aria/popups/PopupManager.js src/aria/utils/resize/Resize.js src/aria/widgets/container/Dialog.js test/aria/widgets/container/dialog/DialogTestSuite.js test/attester-nophantom.yml test/attester-packaged.yml
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Jul 31, 2015
…utilities This commit fixes the following issues: - when dragging an element inside a container, the borders of the container were not properly taken into account to limit the area in which the element can be dragged - when resizing an element outside its boundaries, the size could increase at the opposite side of the mouse instead of being properly limited, because the aria.utils.Dom.fitInside method was called (which only changes the position, and keeps the size) whereas it is needed to limit the size when the boundaries are reached. (cherry picked from commit 97fce1a) Conflicts: src/aria/utils/dragdrop/Drag.js src/aria/utils/resize/Resize.js
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Jul 31, 2015
MovableDialogTestCase was part of ContainerTestSuite instead of being part of the MovableDialogTestSuite. (cherry picked from commit 36dfd72)
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Jul 31, 2015
This commit adds a new `container` property for the `@aria:Dialog` widget. If this property is defined, the dialog is inserted as a child of the corresponding DOM element (which must have the `position:relative` or `position: absolute` style), and the dialog can only be moved or resized inside this element. If the dialog is modal, the modal mask is only above the container, and focusing elements outside the container is still possible. close ariatemplates#1513 (cherry picked from commit ef6ceed) Conflicts: src/aria/popups/Popup.js src/aria/popups/PopupManager.js src/aria/utils/resize/Resize.js src/aria/widgets/container/Dialog.js test/aria/widgets/container/dialog/DialogTestSuite.js test/attester-nophantom.yml test/attester-packaged.yml
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Jul 31, 2015
…utilities This commit fixes the following issues: - when dragging an element inside a container, the borders of the container were not properly taken into account to limit the area in which the element can be dragged - when resizing an element outside its boundaries, the size could increase at the opposite side of the mouse instead of being properly limited, because the aria.utils.Dom.fitInside method was called (which only changes the position, and keeps the size) whereas it is needed to limit the size when the boundaries are reached. (cherry picked from commit 97fce1a) Conflicts: src/aria/utils/dragdrop/Drag.js src/aria/utils/resize/Resize.js
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Jul 31, 2015
MovableDialogTestCase was part of ContainerTestSuite instead of being part of the MovableDialogTestSuite. (cherry picked from commit 36dfd72)
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Jul 31, 2015
This commit adds a new `container` property for the `@aria:Dialog` widget. If this property is defined, the dialog is inserted as a child of the corresponding DOM element (which must have the `position:relative` or `position: absolute` style), and the dialog can only be moved or resized inside this element. If the dialog is modal, the modal mask is only above the container, and focusing elements outside the container is still possible. close ariatemplates#1513 (cherry picked from commit ef6ceed) Conflicts: src/aria/popups/Popup.js src/aria/popups/PopupManager.js src/aria/utils/resize/Resize.js src/aria/widgets/container/Dialog.js test/aria/widgets/container/dialog/DialogTestSuite.js test/attester-nophantom.yml test/attester-packaged.yml
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Sep 2, 2015
…utilities This commit fixes the following issues: - when dragging an element inside a container, the borders of the container were not properly taken into account to limit the area in which the element can be dragged - when resizing an element outside its boundaries, the size could increase at the opposite side of the mouse instead of being properly limited, because the aria.utils.Dom.fitInside method was called (which only changes the position, and keeps the size) whereas it is needed to limit the size when the boundaries are reached. (cherry picked from commit 97fce1a) Conflicts: src/aria/utils/dragdrop/Drag.js src/aria/utils/resize/Resize.js
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Sep 2, 2015
MovableDialogTestCase was part of ContainerTestSuite instead of being part of the MovableDialogTestSuite. (cherry picked from commit 36dfd72)
divdavem
added a commit
to divdavem/ariatemplates
that referenced
this pull request
Sep 2, 2015
This commit adds a new `container` property for the `@aria:Dialog` widget. If this property is defined, the dialog is inserted as a child of the corresponding DOM element (which must have the `position:relative` or `position: absolute` style), and the dialog can only be moved or resized inside this element. If the dialog is modal, the modal mask is only above the container, and focusing elements outside the container is still possible. close ariatemplates#1513 (cherry picked from commit ef6ceed) Conflicts: src/aria/popups/Popup.js src/aria/popups/PopupManager.js src/aria/utils/resize/Resize.js src/aria/widgets/container/Dialog.js test/aria/widgets/container/dialog/DialogTestSuite.js test/attester-nophantom.yml test/attester-packaged.yml
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new
container
property for the@aria:Dialog
widget.If this property is defined, the dialog is inserted as a child of the corresponding DOM element (which must have the
position:relative
orposition: absolute
style), and the dialog can only be moved or resized inside this element. If the dialog is modal, the modal mask is only above the container, and focusing elements outside the container is still possible.This PR also contains a commit which fixes issues in the Resize/Drag utilities.