Jump to content

Moving/Resizing diagrams


Recommended Posts

This is a bit of a tricky issue you normally won't notice. But when I create a node on a diagram (For Loop), it's not exactly at the position I want it but there is an offset by 1 pixel. Furthermore, during this process Position and Bounds of the diagram also change. This issue isn't really noticable in most cases, but it becomes pretty severe when creating Shift Registers (I get offsets >100 pixels). This only happens when I have a node above the loop.

Deeper investigation of this issue hints me, that this has to do with automatic resizing the diagram. Just creating the for loop gives me a diagram with the bounds of 16x16. When I place the node on the diagram (or the ShiftRegs), it needs to be resized. I guess in this process, I lose the desired integrity of my positions. I target of an exact pixel location, to make the subsequent wireing possible. I did try with 'Make Space', but that moves the 'i'-Term around with even worse effect on diagrams Pos and Bounds.

Felix

Link to comment

Forget about the ShiftRegister, I found a bug in my code. I was using the BD instead of the Loop for calculating the offset. :frusty:

Still Everything I drop inside a for loop is moved by one to the bottom and to the right. Using nested for loops, it only happens once (the inner loop is moved, but not the contents in respect to it).

Felix

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.