Opened 5 years ago

Last modified 3 years ago

#5760 reopened enhancement

Improve behaviour of back/forward buttons in OMEdit Documentation browser

Reported by: Francesco Casella Owned by: Adeel Asghar
Priority: high Milestone:
Component: OMEdit Version:
Keywords: Cc:

Description (last modified by Francesco Casella)

The yellow back and forward buttons in the Doumentation browser are very useful to navigate the hyperlinks in the HTML documentation. However, when they are pressed, they bring into view the previous or successive window from the top of the page. In case the documentation is longer than one page, one has to scroll down and search for the line where the link was located in order to continue reading, which is extremely annoying if you do it more than once or twice.

I would recommend to record the position of the viewport on the document when hyperlinks are clicked, so that one is brought back to the same exact point when the back or forward button is clicked.

As a test case, you can take the Modelica.UsersGuide.Overview info, click on the StateGraph link, then click on the back button.

Change History (10)

comment:1 by Francesco Casella, 5 years ago

Description: modified (diff)

comment:2 by Adeel Asghar, 5 years ago

Resolution: fixed
Status: newclosed

Fixed in f89d5be/OpenModelica.

As I said in the web meeting that its not possible to fix this in a proper way but I implemented a way to remember the scroll position. It works almost fine except that when you resize the window (and how often one resizes a window).

in reply to:  2 comment:3 by Francesco Casella, 5 years ago

Replying to adeas31:

Fixed in f89d5be/OpenModelica.

As I said in the web meeting that its not possible to fix this in a proper way but I implemented a way to remember the scroll position.

That's good enough.

It works almost fine except that when you resize the window (and how often one resizes a window).

One doesn't do this all the time, searching the link once in a while is no big deal. What is really annoying is doing it 20 times in five minutes, and this solution solves exactly that problem.

Would you mind back-porting this to 1.15.0 as well?

comment:4 by Adeel Asghar, 5 years ago

Copied to 1.15

comment:5 by Francesco Casella, 5 years ago

Resolution: fixed
Status: closedreopened

I'm using the latest nightly. When I hit the back button, the previus page is indeed no longer shown from the beginning. However, the scroll position is different from the one I had when clicking on the link. I guess there is still something wrong in the implementation.

@adeas31, this can be checked with PowerGrids.UsersGuide.Tutorial.Examples, I'll send you the package separately.

Thanks!

comment:6 by Francesco Casella, 5 years ago

I think understood what the problem is. I have a laptop with a 13-inch 4K monitor. The default size of the documentation is incredibly tiny, so I often zoom it out with the pinch gesture on the documentation area (BTW, isn't there a way to make this zoom factor permanent?)

The more I zoom in, the more I get an offset when hitting the back button. I guess you need to take this zoom in factor into account somehow to position the port view correctly.

comment:7 by Francesco Casella, 4 years ago

Milestone: 1.15.01.16.0

Release 1.15.0 was scrapped, because replaceable support eventually turned out to be more easily implemented in 1.16.0. Hence, all 1.15.0 tickets are rescheduled to 1.16.0

comment:8 by Francesco Casella, 4 years ago

Milestone: 1.16.01.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:9 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:10 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.