Author Topic: API - scrollDocument(x,y) - not working  (Read 399 times)


  • Jr. Member
  • **
  • Posts: 83
  • Karma: 0
  • Scribus User
API - scrollDocument(x,y) - not working
« on: September 21, 2020, 09:58:49 pm »
Can someone explain what exactly this api function does?


Scroll the document in main GUI window by x and y.

My assumption is that if im scrolled down a page, I can use this as part of a script that will bring me to the top of the page if I set X and Y to 0? (it does not do that by the way).

What I also noticed is that after running that api command, the X, Y values (property window) shows values of "-16777215.00 pt" for both X-pos and Y-pos.

im running 1.5.6 on osx.


  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2473
  • Karma: 36
    • the graphics lab
Re: API - scrollDocument(x,y) - not working
« Reply #1 on: September 22, 2020, 12:12:24 am »
i've never used the command but just tried it out in the console:

here it scrolls the document by the x and y value. so x and y are dx and dy...

of course, the document must be "scrollable" (that is not fitting...)

i'm not sure that there is anything to see about this in the properties window, so i guess you're misunderstanding the what the command does...