Opened 11 years ago
Closed 5 years ago
#29778 closed defect (bug) (worksforme)
Editor sidebar scrolling breaks when adding anything above post meta boxes
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.0 |
| Component: | Editor | Keywords: | has-patch close |
| Focuses: | ui, javascript, administration | Cc: |
Description
To test add some html with the submitpost_box and submitpage_box hooks.
Attachments (2)
Change History (12)
#3
follow-up:
↓ 4
@
11 years ago
I had a different approach by putting any newly added content to the #side-sortables div.
I guess it's something we should decide on what's best.
#4
in reply to:
↑ 3
@
11 years ago
Replying to AugusGils:
I had a different approach by putting any newly added content to the #side-sortables div.
I guess it's something we should decide on what's best.
You're moving the action to the sortable div. So anything that action outputs will become sortable.
#6
@
11 years ago
29778.diff changes (a bit) how these two actions work by moving them inside the UI droppable element. This may cause incompatibilities with existing plugins. The approach in 29778.patch has full backwards compatibility.
#8
@
11 years ago
- Milestone changed from 4.1 to Future Release
Thinking more about this: both patches are not 100% backwards compatible. The first adds another wrapper that may become a problem when a plugin traverses the parent nodes with jQuery. The second adds non-sortable elements inside UI Sortable container that may break in some cases. Not sure which one is better.
Furthermore haven't seen any bug reports about broken sidebar because of this. Would be good to test with existing plugins/code.
#10
@
5 years ago
- Milestone Future Release deleted
- Resolution set to worksforme
- Status changed from new to closed
I tested this by adding a <p> with a large paragraph in it to submitpost_box. I wasn't able to see any issues with scrolling.
Going to close this, but happy to re-open if I've missed something.
So what doesn't work is scrolling back up. It's scrolls up to the first box and then whatever's added on top scrolls under it. Until you scroll up all the way.