cacti icon indicating copy to clipboard operation
cacti copied to clipboard

When reload page in browser with graphs created scroll window always return to top

Open AntonBelogolovskiy opened this issue 2 years ago • 7 comments

Cacti v. 1.2.25. When reload page in browser with graphs created scroll window always return to top

Scroll window position not saved and with reload page on press F5 is return to top of window.

Cacti v. 1.2.25 installed on Debian 11 server:

cat /etc/debian_version

11.7

php -v

php -v

PHP 7.4.33 (cli) (built: Feb 22 2023 20:07:47) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies

apache2 -v

Server version: Apache/2.4.56 (Debian) Server built: 2023-04-02T03:06:01

Desktop (please complete the following information)

  • OS: Windows 11 (with latest updates)

  • Browser : Firefox, Chrome (latest versions)

AntonBelogolovskiy avatar Jun 16 '23 08:06 AntonBelogolovskiy

I believe that is by design. Are you expecting something different or am I thinking of a different process ?

netniV avatar Jun 16 '23 11:06 netniV

Push the go or refresh buttons instead.

TheWitness avatar Jun 16 '23 11:06 TheWitness

I believe that is by design. Are you expecting something different or am I thinking of a different process ?

I'll try to explain:

  1. I open a chart window
  2. I scroll with the mouse wheel to the chart I need
  3. After a while, the page automatically refreshes and my scrollbar returns to the top of the page. The old version of cacti 0.8.8h did not have this behavior and was more convenient to use. Perhaps the problem is somewhere in the javascript. Can this be fixed?

AntonBelogolovskiy avatar Jun 16 '23 13:06 AntonBelogolovskiy

Yea, it can.

TheWitness avatar Jun 17 '23 14:06 TheWitness

Yea, it can.

can you help me with this?

AntonBelogolovskiy avatar Jun 22 '23 11:06 AntonBelogolovskiy

It's a low priority feature for me. We could make it an option for 1.3, but right now it's not even on the road map.

netniV avatar Jun 23 '23 00:06 netniV

Not for 1.2.25, but I'll give it some thought for 1.3.0.

TheWitness avatar Jun 24 '23 16:06 TheWitness

This is resolved no in the develop branch.

TheWitness avatar Dec 05 '24 21:12 TheWitness