View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0016434 | Scribus | User Interface | public | 2021-01-17 12:40 | 2021-03-21 15:14 |
Reporter | bubu | Assigned To | jghali | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.5.7.svn | ||||
Fixed in Version | 1.5.7.svn | ||||
Summary | 0016434: Update minimum width for Measurements dialog | ||||
Description | I propose in this patch to enlarge measurements dialog's width to fit "10000.0000 mm" in its labels. This ticket is asked by @PeterBenedek in 0016420:0048689 Benedek, if I'm not wrong the width of these labels are calculated dynamically to fit text "10000.0000". The bug was that the unit of measure was missing from this calculation. See the diff, please. | ||||
Tags | No tags attached. | ||||
Patch | No | ||||
|
0001-Update-minimum-width-for-Measurement-dialog.patch (958 bytes)
From 7b24120be7779616f190e9598a4765cea633b6d3 Mon Sep 17 00:00:00 2001 Message-Id: <7b24120be7779616f190e9598a4765cea633b6d3.1610886456.git.bubu@ujevangelizacio.hu> From: =?UTF-8?q?Gyuris=20Gell=C3=A9rt?= <bubu@ujevangelizacio.hu> Date: Sun, 17 Jan 2021 13:27:22 +0100 Subject: [PATCH] Update minimum width for Measurement dialog --- scribus/ui/measurements.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scribus/ui/measurements.cpp b/scribus/ui/measurements.cpp index 641d09e1e..539bba3c9 100644 --- a/scribus/ui/measurements.cpp +++ b/scribus/ui/measurements.cpp @@ -23,7 +23,7 @@ Measurements::Measurements( QWidget* parent ) : ScrPaletteBase(parent, "Measurem { setupUi(this); - const QString widthString="10000.0000"; + const QString widthString="10000.0000 mm"; int textWidth = fontMetrics().horizontalAdvance(widthString); x1Data->setMinimumSize(textWidth, 12); y1Data->setMinimumSize(textWidth, 12); -- 2.27.0 |
|
Applied, thanks! |
|
Thanks bubu. Work perfectly now. |
|
Thanks! Fixed in 1.5.7.svn (24409) |
Date Modified | Username | Field | Change |
---|---|---|---|
2021-01-17 12:40 | bubu | New Issue | |
2021-01-17 12:40 | bubu | File Added: 0001-Update-minimum-width-for-Measurement-dialog.patch | |
2021-01-17 12:40 | bubu | File Added: measuremnts_minwidth.png | |
2021-01-17 20:45 | jghali | Assigned To | => jghali |
2021-01-17 20:45 | jghali | Status | new => resolved |
2021-01-17 20:45 | jghali | Resolution | open => fixed |
2021-01-17 20:45 | jghali | Fixed in Version | => 1.5.7.svn |
2021-01-17 20:45 | jghali | Note Added: 0048704 | |
2021-01-18 08:02 | PeterBenedek | Note Added: 0048708 | |
2021-03-21 15:14 | FirasH | Status | resolved => closed |
2021-03-21 15:14 | FirasH | Note Added: 0049004 |