Branch: refs/heads/1.6.0
Home:
https://github.com/tribe29/checkmk
Commit: 0dc89c406de1c89e64c03651588eb445c88c7309
https://github.com/tribe29/checkmk/commit/0dc89c406de1c89e64c03651588eb445c…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-04-01 (Wed, 01 Apr 2020)
Changed paths:
A .werks/10873
Log Message:
-----------
10873 FIX Report headers: Improve handling of titles with dynamic lengths
In previous versions of Checkmk the title of reports could only be set to a
fixed size. Especially with generic reports, like host or service reports, this
is a problem because the titles can be of different lengths and can even exceed
the width of the document.
The "One line of text" report element has now a new configuration option
"Shrink too long texts", which is disabled by default. Once you enable this
option, the text size will be estimated before adding it to the document.
In the moment the text is too long, the system tries to wrap the text and
reduce the font size at the same time. In many cases the text is inserted in
such a way that it fits. There are still cases where the text still cannot be
made to fit properly, but for the most common cases this should be a good
enough fit.
Change-Id: Id29cfb04b2e0838a6ca6b779d8f8f6e54e290832