5.2.0 dashboard rack diagram not scaled to fit element size

Started by normalcy, March 31, 2025, 02:27:23 AM

Previous topic - Next topic

normalcy

Upgraded to 5.2.0 on Friday and have just noticed that on a dashboard with a rack diagram element it now seems zoomed to 100% always instead of vertically scaling the rack image into the allocated space of the dashboard element.  So you can never see the full contents of the diagram without using the internal scroll bars.

Is there a way to zoom to fit the rack element, or can the change to that element be reverted?

normalcy

#1
I'm just going to pull a backup to check 5.1.5 but I'm pretty sure it worked then. 

I can see three recent commits relating to rack diagrams


It seems that the third commit is trying to do a zoom to fit feature for racks NX-2695.  I've got a 42RU rack defined and its definitely not zooming to fit in either the desktop client or web UI (linux server).


normalcy

Is the new 'zoom to fit' scaling only taking into account the front view and prioritising width over height for fitting? 

If I adjust the number of columns in a test dashboard it seems to maybe be scaling according to the front view only (see 3-col and 2-col examples).  My original dashboard is a 3-col layout.

Is that an interaction due to the more recent commit to enable/disable front/back views?

Filipp Sudanov

Yes, racks now have scaling limit so that units don't become too small. Looks like this is not ideal for dashboard use, I've created a ticket to improve that: https://track.radensolutions.com/issue/NX-2738

normalcy

Quote from: Filipp Sudanov on March 31, 2025, 02:37:52 PMYes, racks now have scaling limit so that units don't become too small. Looks like this is not ideal for dashboard use, I've created a ticket to improve that: https://track.radensolutions.com/issue/NX-2738
OK thanks.