Scada-LTS icon indicating copy to clipboard operation
Scada-LTS copied to clipboard

Fixed alignment tool making components go out of bounds in graphical view

Open Patrykb0802 opened this issue 1 year ago • 0 comments

In graphic view, while using alignment tool from issue #2503, bigger components when aligned incorrectly (making them go out of bounds) cause system exception.

To Reproduce Steps to reproduce the behavior:

  1. Make sure that you have fuscaBR installed to your Scada-LTS
  2. Go to Graphical views
  3. Add two components, one bigger than other (chart comparator and Binary graphic works fine)
  4. Move smaller component to left border of graphical view
  5. Press start alignment on the right side of the graphical view
  6. First click on smaller component to make it anchor (so rest of the components are aligned to this component) image
  7. When your graphical view looks similar to this , press D or right alignment to make left border of chart comparator go out of bounds. Whole thing should look like this: image 8.Now save and System exception appears -> error

Expected behavior Components should stay inside graphical view no matter what. When redoing this issue, while aligning, chart component should stick to the border of graphical view and not go out of bounds.

Desktop :

  • OS: Linux Mint
  • Browser Chrome
  • Version 2.7.5.4.

Patrykb0802 avatar Aug 24 '23 09:08 Patrykb0802