Panel position changes just because I previewed the anchoring

Here’s my simple scenario:

  1. Create a canvas
  2. Create a panel that fills it
  3. Create another panel inside that one
  4. Resize the inner panel slightly, so that it doesn’t take up all the space
  5. Drag the edge of the outer panel to ‘Preview’ the way the layout changes
  6. Release the mouse button, and see that the inner panel has apparently changed its anchors and size, although the rest of the rendering seems like it’s probably okay.
  7. Enter Play Mode to magically restore the inner panel.

GIF attached of steps 5 and 6.

How can I make anything but the most trivial of UIs if even this simple operation messes up?

2937840--217351--UnityUI.gif

Here’s a longer gif showing the whole process.
2937908--217362--UnityUI2.gif

It also has a ton of these errors in the console:

Look rotation viewing vector is zero
UnityEngine.Quaternion:LookRotation(Vector3, Vector3)
UnityEditorInternal.Slider2D:CalcDeltaAlongDirections(Int32, Vector3, Vector3, Vector3, Vector3, Vector3, Single, CapFunction, Vector2, Boolean) (at C:/buildslave/unity/build/Editor/Mono/EditorHandles/Slider2D.cs:279)
UnityEditorInternal.Slider2D:smile:o(Int32, Vector3, Vector3, Vector3, Vector3, Vector3, Single, CapFunction, Vector2, Boolean) (at C:/buildslave/unity/build/Editor/Mono/EditorHandles/Slider2D.cs:114)
UnityEditor.DockArea:OnGUI()

Same, now I remember why I wait until 1 or 2 versions have released…hope this is fixed next patch.

Edit:
also found this:

Some of the “Workarounds”

  • Enter then Exit play mode
  • Disable Canvas, then Enable Canvas