diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2022-02-11 14:05:37 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-02-12 06:31:49 +0100 |
commit | 92da88582ae8d5ddbd786f9936e1b2b46eaddf2c (patch) | |
tree | f41632caea12f6ceeb6256ff652e8d190afa85ca /chart2/qa/extras/data | |
parent | 0bf0feb40ae5c394a14cdfe4f94fb98dd9053597 (diff) |
chart2: crop x-axis label if it's too long on fixed size charts
If the label text is too long on a fixed size chart area, crop it
as we can't resize the chart area to accomodate for text breaking
into multiple lines.
The algorithm to determine if cropping is needed has assumed that
we need this in case the x-axis label is vertical, so there was
no check to actually make sure the text is horizontal or vertical
and in case it was horizontal, it has taken height into account
and not width, so nothing got cropped.
Change-Id: I8e73027fc51722280418c9e0be34ce487c41171e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129813
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'chart2/qa/extras/data')
-rw-r--r-- | chart2/qa/extras/data/odp/FixedSizeBarChartVeryLongLabel.odp | bin | 0 -> 13293 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/chart2/qa/extras/data/odp/FixedSizeBarChartVeryLongLabel.odp b/chart2/qa/extras/data/odp/FixedSizeBarChartVeryLongLabel.odp Binary files differnew file mode 100644 index 000000000000..18869b638d1e --- /dev/null +++ b/chart2/qa/extras/data/odp/FixedSizeBarChartVeryLongLabel.odp |