SLATE SCanvas Size Computation

I was building a scrolly zoomy (not using ScrollZoomy as I didn’t know it exsisted until after I finished) panel. I added a SCanvas to it by way of an encapsulating SCompoundWidget. I noticed that this compound widget was getting clipped when the (0,0) coordinate of the SCanvas went out of visibility. I had to override the SCompoundWidget::ComputeDesiredSize(float) const function to return the largest element in the Slots of the SCanvas to fix the clipping issue. My question is:

Is the size computation of SCanvas meant to act this way or is it a bug?

1 Like