Opened 12 years ago
Closed 12 years ago
#30760 closed defect (bug) (fixed)
Enable/disable full-height editor doesn't toggle without refreshing
| Reported by: | Clorith | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2 |
| Component: | Editor | Version: | 4.0 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: | ui, javascript |
Description
When toggling the option Enable full-height editor and distraction-free functionality under Screen Options the editor would snap into it's appropriate size in 4.0
In 4.1 it just leaves the full height editor and moves the status bar of it to the end of the document, refreshing the page brings the editor size down as expected.
Attachments (2)
Change History (14)
This ticket was mentioned in Slack in #core by clorith. View the logs.
12 years ago
This ticket was mentioned in Slack in #feature-focus by clorith. View the logs.
12 years ago
#4
@
12 years ago
- Focuses javascript added
- Keywords needs-patch added
- Milestone Awaiting Review → Future Release
- Version trunk → 4.0
It looks like this only happens when there is no value in the user settings. In PHP there is a fallback to the default and the size can't be less than 50 or more than 5000 if the user setting is used. In JS the value is directly taken from the user settings: var height = window.getUserSetting('ed_size'); on line 685 of editor-expand.js without any additional checks or fallback.
This ticket was mentioned in Slack in #feature-focus by janneke. View the logs.
12 years ago
#7
@
12 years ago
This is not a regression, that code is exactly the same in 4.0: https://core.trac.wordpress.org/browser/branches/4.0/src/wp-admin/js/editor-expand.js#L638.
Can be annoying if the user turns off editor expand for the first time while editing longer post, "fixes itself" after the first manual resizing of the editor.
This ticket was mentioned in Slack in #core by azaozz. View the logs.
12 years ago
#9
@
12 years ago
- Milestone Future Release → 4.1.1
Also relevant for 4.0.2. If too minor, please set to 4.2.
Could you give a bit more steps to reproduce?
When I uncheck it, the editor resizes to the height the user set it to before or the default if nothings was set.