[FIX] web: dropdown boundary overflow#37594
Closed
kebeclibre wants to merge 1 commit intoodoo:12.0from
Closed
Conversation
Open a search view modal ("search more" on a m2o)
Select a filter that will make records fall to zero
The modal will shrink
Trigger the opening of a dropdown (Filters), and make sure
that there are many many menu items there (many filters)
Before this commit, the dropdown was bigger than the modal
which had a scroll bar,
however, the dropdown itself was not scrollable properly
So, clicking in it to select a menu item will fail when scrolled
all the way down, because elements did not actually followed the scroll
After this commit, the dropdown follows the scroll, and it is possible
to use it even way down
We use a behavior of bootstrap 4 itself:
FIX: twbs/bootstrap#24976
ISSUE: twbs/bootstrap#24251
OPW 2076337
Contributor
Author
|
robodoo r+ |
robodoo
pushed a commit
that referenced
this pull request
Oct 7, 2019
Open a search view modal ("search more" on a m2o)
Select a filter that will make records fall to zero
The modal will shrink
Trigger the opening of a dropdown (Filters), and make sure
that there are many many menu items there (many filters)
Before this commit, the dropdown was bigger than the modal
which had a scroll bar,
however, the dropdown itself was not scrollable properly
So, clicking in it to select a menu item will fail when scrolled
all the way down, because elements did not actually followed the scroll
After this commit, the dropdown follows the scroll, and it is possible
to use it even way down
We use a behavior of bootstrap 4 itself:
FIX: twbs/bootstrap#24976
ISSUE: twbs/bootstrap#24251
OPW 2076337
closes #37594
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Contributor
|
Merged at c3273b7, thanks! |
This was referenced Oct 7, 2019
kebeclibre
added a commit
to odoo-dev/odoo
that referenced
this pull request
Oct 30, 2019
Before this commit, when a dropdown overflew its container i.e. in the case of a long filter menu in modal The scrolling of that dropdown to get to Add custom Filter was impossible This was because dropdowns react pretty bad when contained in a relative positioned container twbs/bootstrap#26512 twbs/bootstrap#28513 !! After this commit, the btn-group that adds the relative positioning is forced into the default value This commit corrects what was initially corrected at odoo#37594 in v12.0. The incriminating commit that retriggers the issue is irrelevant because it is the refactoring of action manager but here it is: 40dd121
robodoo
pushed a commit
that referenced
this pull request
Oct 31, 2019
Before this commit, when a dropdown overflew its container i.e. in the case of a long filter menu in modal The scrolling of that dropdown to get to Add custom Filter was impossible This was because dropdowns react pretty bad when contained in a relative positioned container twbs/bootstrap#26512 twbs/bootstrap#28513 !! After this commit, the btn-group that adds the relative positioning is forced into the default value This commit corrects what was initially corrected at #37594 in v12.0. The incriminating commit that retriggers the issue is irrelevant because it is the refactoring of action manager but here it is: 40dd121 closes #39541 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
kebeclibre
added a commit
to odoo-dev/odoo
that referenced
this pull request
Oct 31, 2019
Before this commit, when a dropdown overflew its container i.e. in the case of a long filter menu in modal The scrolling of that dropdown to get to Add custom Filter was impossible This was because dropdowns react pretty bad when contained in a relative positioned container twbs/bootstrap#26512 twbs/bootstrap#28513 !! After this commit, the btn-group that adds the relative positioning is forced into the default value This commit corrects what was initially corrected at odoo#37594 in v12.0. The incriminating commit that retriggers the issue is irrelevant because it is the refactoring of action manager but here it is: 40dd121 closes odoo#39541 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
robodoo
pushed a commit
that referenced
this pull request
Oct 31, 2019
Before this commit, when a dropdown overflew its container i.e. in the case of a long filter menu in modal The scrolling of that dropdown to get to Add custom Filter was impossible This was because dropdowns react pretty bad when contained in a relative positioned container twbs/bootstrap#26512 twbs/bootstrap#28513 !! After this commit, the btn-group that adds the relative positioning is forced into the default value This commit corrects what was initially corrected at #37594 in v12.0. The incriminating commit that retriggers the issue is irrelevant because it is the refactoring of action manager but here it is: 40dd121 closes #39541 closes #39620 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com> Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
fw-bot
pushed a commit
to odoo-dev/odoo
that referenced
this pull request
Oct 31, 2019
Before this commit, when a dropdown overflew its container i.e. in the case of a long filter menu in modal The scrolling of that dropdown to get to Add custom Filter was impossible This was because dropdowns react pretty bad when contained in a relative positioned container twbs/bootstrap#26512 twbs/bootstrap#28513 !! After this commit, the btn-group that adds the relative positioning is forced into the default value This commit corrects what was initially corrected at odoo#37594 in v12.0. The incriminating commit that retriggers the issue is irrelevant because it is the refactoring of action manager but here it is: 40dd121 closes odoo#39541 Original-signed-off-by: Aaron Bohy (aab) <aab@odoo.com> X-original-commit: 7f72b83
robodoo
pushed a commit
that referenced
this pull request
Oct 31, 2019
Before this commit, when a dropdown overflew its container i.e. in the case of a long filter menu in modal The scrolling of that dropdown to get to Add custom Filter was impossible This was because dropdowns react pretty bad when contained in a relative positioned container twbs/bootstrap#26512 twbs/bootstrap#28513 !! After this commit, the btn-group that adds the relative positioning is forced into the default value This commit corrects what was initially corrected at #37594 in v12.0. The incriminating commit that retriggers the issue is irrelevant because it is the refactoring of action manager but here it is: 40dd121 closes #39541 closes #39636 Original-signed-off-by: Aaron Bohy (aab) <aab@odoo.com> X-original-commit: 7f72b83 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
3 tasks
Contributor
|
@kebeclibre there is similar issue for Favorites menu. Any clue how to fix that? |
Contributor
|
Hi @yelizariev If I do the same thing as this for favorites, I have the same behavior in 12.0 and 13.0: diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index b95a8752ef2..7fca356668e 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1349,7 +1349,7 @@
</t>
<div t-name="SearchView.FavoriteMenu" class="btn-group o_dropdown">
- <button t-attf-class="o_dropdown_toggler_btn btn btn-secondary dropdown-toggle#{widget.isMobile ? ' o-no-caret' : ''}" data-toggle="dropdown" aria-expanded="false" tabindex="-1" aria-label="Favorites" title="Favorites">
+ <button t-attf-class="o_dropdown_toggler_btn btn btn-secondary dropdown-toggle#{widget.isMobile ? ' o-no-caret' : ''}" data-toggle="dropdown" aria-expanded="false" tabindex="-1" aria-label="Favorites" title="Favorites" data-boundary="viewport">
<span class="fa fa-star"/> Favorites <span t-if="widget.isMobile" class="fa fa-chevron-right float-right mt4"/>
</button>
<div class="dropdown-menu o_favorites_menu" role="menu">in 13.0 this is not necessary because the favorite menu is using the general Dropdown widget: that already has odoo/addons/web/static/src/xml/base.xml Lines 1094 to 1095 in aee9922 |
yelizariev
added a commit
to odoo-dev/odoo
that referenced
this pull request
Oct 7, 2020
This commit applies same fix as in odoo#37594 / c3273b7 but for favorites menu. In 13.0 Favorites extends same Dropdown, so this is fix is not needed in 13. opw-2336611
fw-bot
pushed a commit
to odoo-dev/odoo
that referenced
this pull request
Oct 13, 2020
This commit applies same fix as in odoo#37594 / c3273b7 but for favorites menu. In 13.0 Favorites extends same Dropdown, so this is fix is not needed in 13. opw-2336611 X-original-commit: 5e2f537
AdriaGForgeFlow
pushed a commit
to ForgeFlow/odoo
that referenced
this pull request
Jan 28, 2021
This commit applies same fix as in odoo#37594 / c3273b7 but for favorites menu. In 13.0 Favorites extends same Dropdown, so this is fix is not needed in 13. opw-2336611 closes odoo#59417 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
This file contains hidden or 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
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.
Open a search view modal ("search more" on a m2o)
Select a filter that will make records fall to zero
The modal will shrink
Trigger the opening of a dropdown (Filters), and make sure
that there are many many menu items there (many filters)
Before this commit, the dropdown was bigger than the modal
which had a scroll bar,
however, the dropdown itself was not scrollable properly
So, clicking in it to select a menu item will fail when scrolled
all the way down, because elements did not actually followed the scroll
After this commit, the dropdown follows the scroll, and it is possible
to use it even way down
We use a behavior of bootstrap 4 itself:
FIX: twbs/bootstrap#24976
ISSUE: twbs/bootstrap#24251
OPW 2076337
Description of the issue/feature this PR addresses:
Current behavior before PR:
Desired behavior after PR is merged:
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr