Set Translation of Widget in Scrollbox Bug

If you use the Set Translation node to position a widget that is in a canvas panel that is in a scrollbox, upon scrolling, that widget doesn’t scroll with the scroll box that it is in. It scrolls correctly if the widget is placed on the Y 0, but if you place it lower in the canvas panel that is in the scrollbox it won’t move with the scroll box. For instance, if I use the Set Translation node to set the Y to 100 or 200 and then scroll the window, the widget doesn’t move with the scroll box. It stays in place.

Hello Nightasy,

I was unable to reproduce this issue on our end. I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?
  2. If so, could you provide a detailed list of steps to reproduce this issue on our end?
  3. Could you provide screen shots of the issue that you are experiencing?
  1. Create a Widget Switcher.
  2. Create a scroll box that scrolls (add stuff to it so that it will scroll) and put it in the Widget Switcher.
  3. Create a canvas panel in the scrollbox.
  4. Create some buttons (size 100x100, stacked in rows of 5) in the canvas panel, about 5 or 6 rows should do.
  5. Create an image in the canvas panel (size 100x100.)
  6. Set the image to Z Order 1.
  7. Create a function that moves the image (Set translation node) so that it hovers over one of the buttons when pressed.
  8. Make sure the image is not at Y zero after moving it. (Try x300 by y300)
  9. Scroll the window.
  10. Marvel at bug.

Hello Nightasy,

I am not seeing the issue that you are describing on our end. Also, I do not know the exact method you are using to set the position of the image (Step number seven is too vague for an accurate reproduction of this issue). I did notice that you are setting the Translation rather than the actual position of the widget. Could you try setting the widgets position instead and let me know if this issue still occurs. One way to do this would be to drag off your reference and use “Slot as Canvas slot” from this node you will be able to set the position. I hope that this helps.

Example:

56079-setpositionhelp.png

Hello Nightasy,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.