Skip to content

Commit 76877b0

Browse files
authored
DOC-3131: Setting editor height to a pt or em value was ignoring min/max height settings. (#3669)
1 parent 7a9c105 commit 76877b0

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
@@ -173,6 +173,11 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a
173173

174174
// CCFR here.
175175

176+
=== Setting editor height to a `pt` or `em` value was ignoring min/max height settings.
177+
// #TINY-11108
178+
179+
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.
180+
176181

177182
[[security-fixes]]
178183
== 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)