Skip to content
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

Configurable ContextMenu's container #6304

Merged
merged 13 commits into from Oct 31, 2019
Merged

Configurable ContextMenu's container #6304

merged 13 commits into from Oct 31, 2019

Conversation

mrpiotr-dev
Copy link
Contributor

@mrpiotr-dev mrpiotr-dev commented Oct 1, 2019

Context

Currently, rootDocument.body is a hard-coded container for ContextMenu's elements. Thanks to these changes, it will be possible to define the container.
Changes are backward compatible - if contextMenu.uiContainer is not defined, there rootDocument.body is used.

How has this been tested?

Add uiContainer property to the contextMenu option on initialization.

Types of changes

  • New feature or improvement (a non-breaking change which adds functionality)

Related issue(s):

  1. Configurable ContextMenu's container #6283

@mrpiotr-dev mrpiotr-dev self-assigned this Oct 1, 2019
@mrpiotr-dev mrpiotr-dev marked this pull request as ready for review October 9, 2019 14:25
@mrpiotr-dev mrpiotr-dev assigned jansiegel and unassigned mrpiotr-dev Oct 9, 2019
@mrpiotr-dev mrpiotr-dev assigned mrpiotr-dev and unassigned jansiegel Oct 22, 2019
@mrpiotr-dev mrpiotr-dev assigned jansiegel and unassigned mrpiotr-dev Oct 24, 2019
Copy link
Member

@jansiegel jansiegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jansiegel jansiegel assigned mrpiotr-dev and unassigned jansiegel Oct 31, 2019
@mrpiotr-dev mrpiotr-dev merged commit 36909f8 into develop Oct 31, 2019
@mrpiotr-dev mrpiotr-dev deleted the feature/issue-6283 branch October 31, 2019 15:08
jansiegel pushed a commit that referenced this pull request Nov 4, 2019
* Changed: contextMenu uses configurable container. #6283

* Changed: contextMenu's positioning to support iframe. Adjustment in dragToScroll, #6283

* Changed: event propagation for right click on contextMenu items. Reverted changes for mixed frames event propagation onkeydown. #6283

* Changed: prevented opening native context menu by clicking the right mouse button on ContextMenu's item. #6283

* Changed: contextMenu/dropdownMenu/FilterUISelect executes command on  hook instead of . First part of test specs adjustments. #6283

* Adjusted: contextMenu's items will be executed on mouseup/contextmenu events. #6283

* Changed: property name of UI container. Added: test specs for custom UI container. #6283

* Changed: dropdownMenu requires colHeaders to work. #6283

* Added: tests for added functionalities. #6283

* Changed: default container for ContextMenu should be document.body instead document.documentElement. #6283

* Changed: position's calculations have to base on event.view's scroll too. [skip ci] #6283

* Added: test scenario to verify contextmenu UI elements' positioning is correct if documents are different. #6283
@budnix budnix restored the feature/issue-6283 branch November 26, 2019 09:32
@budnix budnix deleted the feature/issue-6283 branch November 26, 2019 09:39
@budnix budnix mentioned this pull request Nov 29, 2019
6 tasks
budnix added a commit that referenced this pull request Nov 29, 2019
Revert fragmentSelection option to 'cell'. The change was introduced
within #6304. However while testing input element in the "Filter by
value" component I've spotted that CTRL/CMD+A stopped working.

The option was reverted to the stated before #6304.
budnix added a commit that referenced this pull request Nov 29, 2019
It seems that changing fragmentSelection to `false` doesn't make any
problems with selection. So I reverted the change as originally
introduced in #6304
@budnix budnix restored the feature/issue-6283 branch December 2, 2019 12:26
@budnix budnix deleted the feature/issue-6283 branch December 2, 2019 12:31
wszymanski added a commit that referenced this pull request Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants