Closed (fixed)
Project:
Modal
Version:
4.1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2022 at 00:28 UTC
Updated:
14 Sep 2022 at 21:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
luiscarvalho commentedComment #4
renatog commentedI'm testing that
Comment #5
renatog commentedIsn't working for me.
I put value: 50%
the modal is saved
But when I open again the value there is only "50" without "%"
so is considering pixels and not percent =/
Comment #6
luiscarvalho commentedThe field was saving only the numeric part because the schema was creating an integer on the database. Sending a fix.
Comment #7
renatog commentedContinue not working for me =/
For you it's working with 50% on that field?
Comment #8
diegorsI'll try to look into that.
Comment #9
diegorsFixed the scroll problem based on scroll offset.
Now any offset type work from 0% to 100% scroll.
Comment #10
diegorsfixed the merge conflicts,
Comment #11
paulocsIf the entire page is displayed on the screen (no scroll possibility), the modal is not displayed.
Comment #12
diegorsComment #13
diegorsMade the purposed change on #11, and now it checks if that page has a scrollbar, if not, then shows the modal automatically.
Also fixed the merge problem.
Comment #14
lucasscHi!
I will review.
Comment #15
lucassc- I confirm that "Height Offset" field is now considering pixels and percent values;
- The modal is displayed to entire pages (with no scroll possibility) as well;
- However, the modal appears twice if there's just a little space to scroll.
E.g., in a fresh installation of drupal with only the user "admin" registered, there is a scroll space of approximately 50px in the /admin/people page (in my monitor). In these cases, the modal appears twice (once when /admin/people get ready and another when scrolling).
Comment #16
diegorsThanks @lucassc, added a return to prevent the modal from appearing more than once.
Also changed the if statement comparing the document and window height.
Comment #17
lucasscComment #18
lucasscLooks good to me! Everything works.
I just fixed some coding standards errors introduced by the issue.
RTBC if no one else disagrees.
Comment #20
paulocsAmazing work! Thank you all!
Comment #21
renatog commented