craftcms / craftcms/cms

Wonky scrolling behavior inside of an edit element modal

Open
#1,745 0 comments 3 reactions 1 assignee View on GitHub

@benjamindavid is already working on this.

Since May 31, 2017.

bug severity:minor
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

Description

If you have a Rich Text field with a lot of content inside of an edit element modal window, you can get wonky behavior in narrow window sizes. Note that if you try the following in a tall window where the main browser doesn't have a scrollbar, it seems to work fine.

Steps to reproduce
  1. craft3test.zip Restore this database backup (MySQL) on a Craft 3 install (issue also affects Craft 2).

  2. Login username: admin password: letmein

  3. Go to Entries and edit the Home single.

  4. Double click the "We just installed Craft" entry in the Articles Entry field.

  5. Resize the browser so that you get a horizontal scroll bar on the main window. i.e. make it short.

  6. Scroll to the bottom of the edit element modal.

  7. Try and scroll back up. It's all wonky.

Additional info
  • Craft version: 2.x and 3.x
  • PHP version: n/a
  • Database driver & version: MySQL
  • Plugins & versions: n/a

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.