Skip to content

Commit eabd7a9

Browse files
committed
DOC-3131: Setting editor height to a pt or em value was ignoring min/max height settings.
1 parent be90ec1 commit eabd7a9

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

modules/ROOT/pages/7.8.0-release-notes.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a
158158

159159
// CCFR here.
160160

161+
=== Setting editor height to a `pt` or `em` value was ignoring min/max height settings.
162+
// #TINY-11108
163+
164+
Previously, when the editor height was set using relative units such as `pt` or `em`, the editor was unable to parse and evaluate these values correctly. As a result, it would bypass the `min_height` and `max_height` checks, leading to unpredictable layout behavior. This issue was especially noticeable during initialization, although resizing later used the browser-calculated content box height, which partially masked the problem. In {release-version}, {productname} now attempts to compute height values from additional unit types to better enforce minimum and maximum height constraints. Some units, such as percentages (`%`), may still override explicit height values due to browser limitations in determining the final rendered size. This update ensures that `min_height` and `max_height` settings are more reliably applied across a wider range of unit types.
165+
161166

162167
[[security-fixes]]
163168
== Security fixes

modules/ROOT/partials/configuration/height.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33

44
`+height+` sets the height of the entire editor, including the menu bar, toolbars, and status bar.
55

6-
NOTE: If a number is provided, {productname} sets the height in pixels. If a string is provided, {productname} assumes the value is valid CSS and sets the editor's height as the string value. This allows for alternate units such as `+%+`, `+em+`, and `+vh+`.
6+
[NOTE]
7+
====
8+
* If a number is provided, {productname} sets the height in pixels by defult.
9+
* If a string is provided, {productname} assumes the value is valid CSS and sets the editor's height as the string value such as `+300px+`, `+50pt+`, or `+10em+`.
10+
11+
Note: that values such as `+100%+`, `+10vh+` and `auto` are not currently supported.
12+
====
713

814
*Type:* `+Number+` or `+String+`
915

0 commit comments

Comments
 (0)