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 )
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 , 5 years ago
Description: | modified (diff) |
---|
follow-up: 3 comment:2 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 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:5 by , 5 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
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 , 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 , 5 years ago
Milestone: | 1.15.0 → 1.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:9 by , 4 years ago
Milestone: | 1.17.0 → 1.18.0 |
---|
Retargeted to 1.18.0 because of 1.17.0 timed release.
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).