View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0014090 | Scribus | Canvas | public | 2016-05-23 14:17 | 2026-09-07 03:57 |
| Reporter | Kunda | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | new | Resolution | open | ||
| Platform | MacOSX | OS | Yosemite | OS Version | 10.10.5 |
| Product Version | 1.5.3.svn | ||||
| Summary | 0014090: Toggling between Fit to Height and 100% view (AKA ctrl+0 and ctrl+1) walks the viewport left | ||||
| Description | see gif | ||||
| Steps To Reproduce | 1) Open Scribus Document 2) press ctrl+0 (cmd+0 on OSX) or select View > Zoom > Fit to Height 3) press ctrl+1 (cmd+1 on OSX) or select View > Zoom > 100% 4) Repeat steps 2 and 3 several times Result: Viewport 'walks' left till canvas is off screen | ||||
| Tags | #please_test | ||||
| Attached Files | |||||
| Patch | No | ||||
|
|
Unable to reproduce, mine toggles between 100% zoom and 98.58% zoom |
|
|
Unable to reproduce on Ubuntu with 1.5.2, even when i make window smaller first. |
|
|
Exact same issue on my 1.7.4.svn as the gif. Here is what fixed it for me, ## Cause - `Ctrl+1` used `ScribusMainWindow::slotZoom(100)`, while the status-bar 100% control used `ScribusView::slotZoom100()`, giving different centering behavior. - `Ctrl+0` Fit-to-Height preserved the previous horizontal viewport position instead of centering the current page. - Both could leave the page pushed toward the viewport edge after zooming. ## Fix - Routes `Ctrl+1` through the existing `ScribusView::slotZoom100()` path. - Changes `Ctrl+0` to use the current page center as the zoom anchor. - Ensures Ctrl+0 can recenter even when already at the target fit-height scale. - Leaves Fit-to-Width and other zoom behaviour unchanged. zoom2-view-positioning-v1.03.patch (1,234 bytes)
Index: scribus/scribus.cpp
===================================================================
--- scribus/scribus.cpp (revision 27816)
+++ scribus/scribus.cpp (working copy)
@@ -5490,6 +5490,12 @@
void ScribusMainWindow::slotZoom(double zoomFactor)
{
+ if (zoomFactor == 100.0)
+ {
+ view->slotZoom100();
+ return;
+ }
+
double finalZoomFactor = 0.0;
//Zoom to Fit
if (zoomFactor == -100.0)
@@ -5504,7 +5510,7 @@
else
finalZoomFactor = zoomFactor*m_prefsManager.displayScale()/100.0;
- if (finalZoomFactor == view->scale())
+ if ((finalZoomFactor == view->scale()) && (zoomFactor != -100.0))
return;
double x = qMax(view->contentsX() / view->scale(), 0.0);
@@ -5515,7 +5521,7 @@
if (zoomFactor == -200.0)
view->rememberOldZoomLocation(doc->currentPage()->xOffset() + doc->currentPage()->width() / 2.0, h / 2.0 + y);
else if (zoomFactor == -100.0)
- view->rememberOldZoomLocation(w / 2.0 + x, doc->currentPage()->yOffset() + doc->currentPage()->height() / 2.0);
+ view->rememberOldZoomLocation(doc->currentPage()->xOffset() + doc->currentPage()->width() / 2.0, doc->currentPage()->yOffset() + doc->currentPage()->height() / 2.0);
else
view->rememberOldZoomLocation(w / 2.0 + x, h / 2.0 + y);
|
|
|
The clips starts with Ctrl+0 and then Ctrl+1, then repeats. |
|
|
Unable to reproduce on Linux Mint 22.3; Scribus 1.7.4svn appimage |
|
|
i can reproduce the walk of the page to the right (viewpoint to the left) with scribus 1.7.3 on mac os 26.6.2 with scribus 1.6.6 it zooms without walking sideways. |
|
|
Thanks for the update, @utnik. Pls test the patch in 0014090:0054423. See if that fixes the issue. |
|
|
@qirat: as i don’t compile my own program versions, i can’t test the patch. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2016-05-23 14:17 | Kunda | New Issue | |
| 2016-05-23 14:17 | Kunda | File Added: viewport-exit-stage-right.gif | |
| 2016-05-23 18:56 | cbradney | Note Added: 0041353 | |
| 2016-05-23 20:14 | JLuc | Note Added: 0041355 | |
| 2016-05-25 04:50 | Kunda | Relationship added | related to 0008735 |
| 2016-05-25 04:50 | Kunda | Relationship added | related to 0010235 |
| 2026-09-05 15:43 | buttar | Note Added: 0054423 | |
| 2026-09-05 15:43 | buttar | File Added: zoom2-view-positioning-v1.03.patch | |
| 2026-09-05 15:44 | buttar | Tag Attached: #easyhack | |
| 2026-09-05 15:44 | buttar | Tag Attached: #please_test | |
| 2026-09-05 15:44 | buttar | Tag Detached: #easyhack | |
| 2026-09-06 01:16 | buttar | Note Added: 0054424 | |
| 2026-09-06 01:16 | buttar | File Added: ctrl+0,ctrl+1.mp4 | |
| 2026-09-06 09:10 | PeterBenedek | Note Added: 0054427 | |
| 2026-09-06 17:43 | utnik | Note Added: 0054428 | |
| 2026-09-07 00:17 | buttar | Note Added: 0054429 | |
| 2026-09-07 03:57 | utnik | Note Added: 0054431 |