CheckLayout#
func CheckLayout(snapshot app.Snapshot) []LayoutProblemCheckLayout finds geometry in snapshot that is almost surely a bug: text that is cut off, runs out of its button or field, lies over other text, or leaves the window, and focusable controls that cross each other. It reads the frame the application painted and decides nothing about intent, so a deliberate overlap (an overlay drawn on its own layer is not one) still shows. Problems come from the top of the window down.