Author Topic: How to center the view?  (Read 777 times)

January 23, 2019, 10:42:32 PM
Read 777 times

mortoray

  • Sr. Newbie

  • Offline
  • **

  • 5
I've used Inkscape a lot and have never figured out how to center the workspace view. I zoom in and out a lot and my page ends up moving to the side and getting stuck there.

The screenshot below shows the typical symptom. Note that the bottom scrollbar is to the far right, so I don't even have the option to move it back into view. I end up zooming in/out until I 'm happy.

Screenshot_20190124_073923.png
*Screenshot_20190124_073923.png
(9.8 kB . 1065x661)
(viewed 355 times)


How can I center the view?

Is there a way to zoom on the center of the view so it doesn't move?
  • Inkscape 0.92.3 (2405546, 2018-03-11)
  • Ubuntu 18.04

January 24, 2019, 04:46:49 AM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

The Zoom tool  :zoom: provides the option to zoom to the page size (or 5 key, for the key shortcut).  Of course that can only fit one dimension, unless you always use a page size with the same ratio as your screen.

Another option might be to hide the page border entirely, and then you don't have to worry about it.  File menu > Document Properties > Page tab, near the bottom.  In that case, you can center your drawing to the screen using Zoom to fit drawing button (or 4 key).

Or there's yet another zoom button/key, Zoom to fit selection (3 key).
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

January 24, 2019, 05:10:31 AM
Reply #2

mortoray

  • Sr. Newbie

  • Offline
  • **

  • 5
I don't want to reset the zoom, only change the view position (the panning).
  • Inkscape 0.92.3 (2405546, 2018-03-11)
  • Ubuntu 18.04

January 24, 2019, 01:24:40 PM
Reply #3

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
You know that you can move the drawing area ('panning') by using:

- Ctrl + Arrow keys
- middle mouse button and mouse drag
- space bar and mouse drag

?

January 24, 2019, 01:42:07 PM
Reply #4

mortoray

  • Sr. Newbie

  • Offline
  • **

  • 5
I did not know about all of those (I kept going through the menus looking for such options to get keystrokes, but they don't appear to be in the menu).

That SpaceBar one appears a bit weird. It doesn't always trigger correctly. Like if switch layers, or tools, or selection, then it requires a few priming clicks before it works. It appears the view needs to have keyboard focus -- tools will steal that even if they don't use the keyboard.

Ctrl works.  Middle-mouse is okay, but it's a wheel, so hard to to click.

Thank you. I should be fine with these -- though a "center" would still be great.
  • Inkscape 0.92.3 (2405546, 2018-03-11)
  • Ubuntu 18.04

January 24, 2019, 07:09:10 PM
Reply #5

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Is there a way to zoom on the center of the view so it doesn't move?

That's why I answered with zoom features.

I'm curious why you have this need to have the page in the center of the screen.  If you could share more about that, there might be a feature that will work for you.  I mean, of course you want the page fully on the screen, but I don't understand why you need it centered on the screen.

Possibly you're accustomed to some other graphics program which has such a feature, and you miss it in Inkscape?  Of course as an open source program, anyone is welcome to request new features.  You can request a new feature here:  https://gitlab.com/inkscape/inbox/issues  Click the New Issue button, and fill out the questions.  (If you don't already have a gitlab account, you'll have to register.)

Or it's possible that as you use Inkscape more and more, you'll realize you don't need the page centered on the screen?  Did you realize that it's possible to draw outside the page border in Inkscape?  Or that you can remove the page border entirely, if you don't want to see it?  I rarely use a page border myself.  I wonder if either of those would work for you?

  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

January 24, 2019, 10:43:45 PM
Reply #6

mortoray

  • Sr. Newbie

  • Offline
  • **

  • 5
I've been using Inkscape for years now, but this problem finally bugged me enough to look into it.

The reason I want centered is because, as the first screen shot shows, everything ends up stuck to the side of the viewport -- it gets worse than that sometimes. On a large monitor this forces me to look in a different direction to work on the graphics. It also creates an unbalanced border around the image, making it harder to judge the sizes.

I use page sizes a lot when targeting graphics of a fixed size/ratio. I'll end up exporting the page to a PNG file. It's my natural clipping bounds for such graphics. This means that my work will always be centered on the page -- thus the desire to quickly center it again.
  • Inkscape 0.92.3 (2405546, 2018-03-11)
  • Ubuntu 18.04

January 24, 2019, 10:50:15 PM
Reply #7

mortoray

  • Sr. Newbie

  • Offline
  • **

  • 5
  • Inkscape 0.92.3 (2405546, 2018-03-11)
  • Ubuntu 18.04

January 25, 2019, 05:42:41 AM
Reply #8

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
Check out the keyboard and mouse reference linked from the Help menu item. It contains lots of additional gems!