-
Notifications
You must be signed in to change notification settings - Fork 23.2k
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
[FIX] mass_mailing: scroll in iframe mass_mailing form #164666
Conversation
Seems legit to me, I would mention 8a74c1f in the commit message as it's not really clear how it's supposed to work without the original context. |
"You can scroll inside the template" you mean can't, right? |
f011028
to
09e6c5c
Compare
Issue: ===== We can't scroll in iframe using the mouse (no scroll available) Steps to reproduce the issue: ============================= - Install events, mass_mailing - Go to any event and click invite - Choose any template - You can't scroll inside the template Origin of the issue: ==================== Many other apps inherits the view with id `view_mail_mass_mailing_form` and not the view with id `mailing_mailing_view_form_full_width` which have the logic of resizing the iframe to the length of its content (introduced here [1]) so we don't really need to scroll inside the iframe. But for the other apps since they inherit from the first mentioned view, they will have the iframe class `.o_mass_mailing_iframe` but we specified in mass_mailing.ui.scss file that html that have that class we don't assign `overflow:visible` to them , that's why we can't scroll inside the iframe. Solution: ========= There are a lof of ways to solve this problem but most of them needs an xml change which requires an update of the module. The current solution is to add a special class to the full_width view using js from it's already defined js_class and then we exclude it from the scss selector. opw-3897165 [1]: odoo@8a74c1f
09e6c5c
to
d29a4e1
Compare
@reth-odoo , @dmo-odoo , I updated the commit message and fixed the typos, let me know what you think , thanks ! |
The iframe itself is not aware of whether its parent component is in full width or not. |
@robodoo r+ |
Issue: ===== We can't scroll in iframe using the mouse (no scroll available) Steps to reproduce the issue: ============================= - Install events, mass_mailing - Go to any event and click invite - Choose any template - You can't scroll inside the template Origin of the issue: ==================== Many other apps inherits the view with id `view_mail_mass_mailing_form` and not the view with id `mailing_mailing_view_form_full_width` which have the logic of resizing the iframe to the length of its content (introduced here [1]) so we don't really need to scroll inside the iframe. But for the other apps since they inherit from the first mentioned view, they will have the iframe class `.o_mass_mailing_iframe` but we specified in mass_mailing.ui.scss file that html that have that class we don't assign `overflow:visible` to them , that's why we can't scroll inside the iframe. Solution: ========= There are a lof of ways to solve this problem but most of them needs an xml change which requires an update of the module. The current solution is to add a special class to the full_width view using js from it's already defined js_class and then we exclude it from the scss selector. opw-3897165 [1]: 8a74c1f closes #164666 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Issue:
We can't scroll in iframe using the mouse (no scroll available)
Steps to reproduce the issue:
Origin of the issue:
Many other apps inherits the view with id
view_mail_mass_mailing_form
and not the view with id
mailing_mailing_view_form_full_width
whichhave the logic of resizing the iframe to the length of its content
(introduced here 1) so we don't really need to scroll inside the
iframe. But for the other apps since they inherit from the first
mentioned view, they will have the iframe class
.o_mass_mailing_iframe
but we specified in mass_mailing.ui.scss file that html that have that
class we don't assign
overflow:visible
to them , that's why we can'tscroll inside the iframe.
Solution:
There are a lof of ways to solve this problem but most of them needs an
xml change which requires an update of the module. The current solution
is to add a special class to the full_width view using js from it's
already defined js_class and then we exclude it from the scss selector.
opw-3897165