- Issue created by @simohell
- First commit to issue fork.
- Status changed to Needs review
about 1 year ago 7:30am 7 November 2023 - Status changed to Needs work
about 1 year ago 7:43am 7 November 2023 - 🇫🇮Finland lauriii Finland
Nice! I got first confused by this because jQuery UI has the
maxWidth
property, but reading the documentation and testing it manually, it doesn't look like it behaves the same as CSSmax-width
property. Even if a dialog uses themaxWidth
property, it needs this bug fix for it to work on all breakpoints. 👍Can we add test coverage for this in
\Drupal\FunctionalJavascriptTests\Dialog\DialogPositionTest
? - Status changed to Needs review
about 1 year ago 1:46pm 8 November 2023 - First commit to issue fork.
- 🇺🇸United States smustgrave
Question how often could a new character be added to php date?
- Status changed to RTBC
about 1 year ago 6:35pm 8 November 2023 - 🇺🇸United States smustgrave
Did rebase so I could run the test-only feature
There was 1 failure: 1) Drupal\FunctionalJavascriptTests\Dialog\DialogPositionTest::testModalWidthResizing Failed asserting that 'position: fixed; height: auto; width: 880px; top: 263.319px; left: 0.003125px; z-index: 101;' contains "width: 745". /builds/issue/drupal-3395590/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:121 /builds/issue/drupal-3395590/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:55 /builds/issue/drupal-3395590/core/tests/Drupal/FunctionalJavascriptTests/Dialog/DialogPositionTest.php:94 /builds/issue/drupal-3395590/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 FAILURES! Tests: 2, Assertions: 16, Failures: 1.
Nice test case!
Tested manually and got the same results as the IS.
- Status changed to Needs work
about 1 year ago 6:59am 16 November 2023 - 🇫🇮Finland lauriii Finland
Realized that we need to take into account displace offsets too
- First commit to issue fork.
- Status changed to Needs review
about 1 year ago 8:34am 16 November 2023 - 🇫🇮Finland lauriii Finland
Testing the MR manually, I realized that we should not take into account the displace when the dialog is modal because modal would render on top of other elements. You can check if the dialog is modal from
event.data.settings.modal
. Maybe we could take that into account in the width calculation and open a follow-up to fix this for the height? - Status changed to RTBC
about 1 year ago 2:38pm 17 November 2023 - 🇺🇸United States smustgrave
Retested and still see the issue has been fixed. Didn't upload screenshots as the IS has them.
- Status changed to Needs work
about 1 year ago 8:42am 20 November 2023 - 🇷🇸Serbia finnsky
Why we cannot use css max-width here?
With combination with `calc` and `vw` and `--drupal-displace-offset-left/right`? - 🇷🇸Serbia finnsky
This fix is working.
Can be also addedmax-width: calc(100vw - var(--drupal-displace-offset-left, 0) - var(--drupal-displace-offset-right, 0))
for non modals. Ideally we need to simplify dialog js instead of make it more complicated.
- Status changed to Needs review
about 1 year ago 9:35am 22 November 2023 - Status changed to Needs work
about 1 year ago 12:33am 26 November 2023 - 🇺🇸United States smustgrave
Believe there is 1 thread unanswered. If I'm wrong can a comment be dropped on the thread.
Is the test coverage enough for testing the changes that we implemented.Is it worth adding a test coverage testing the width of a non modal dialog which takes the offset into account as well?
- Status changed to Needs review
about 1 year ago 8:58am 30 November 2023 Seems like a random test failure related to chromedriver version.
- Status changed to RTBC
about 1 year ago 4:52pm 7 December 2023 - 🇺🇸United States smustgrave
Believe feedback has been addressed, and issue appears to still be resolved followed same steps as before.
- Status changed to Needs work
about 1 year ago 3:48am 8 December 2023 There were test failures related to off-canvas modals so i have fixed those.So marking it needs work until everything is green.
- Status changed to Needs review
about 1 year ago 4:00am 8 December 2023 - Status changed to RTBC
about 1 year ago 1:27pm 8 December 2023 - 🇺🇸United States smustgrave
Could of sworn tests were green but update didn't break anything.
- Status changed to Needs work
about 1 year ago 10:44am 11 December 2023 - 🇮🇳India omkar.podey
Works as expected, good work 🎉 , tested manually, have some questions about the test and some nits.
- Status changed to Needs review
about 1 year ago 4:04am 15 December 2023 - Status changed to Needs work
about 1 year ago 8:50am 19 December 2023 - 🇮🇳India kunal.sachdev
Have some suggestions regarding the documentation otherwise looks good to me.
- Status changed to Needs review
about 1 year ago 9:27am 19 December 2023 - Status changed to Needs work
about 1 year ago 9:34am 19 December 2023 - 🇷🇸Serbia finnsky
Added couple of feedback. Not strict but can you review please?
- Status changed to Needs review
10 months ago 7:08am 12 March 2024 - Status changed to Needs work
9 months ago 9:14am 14 March 2024