Merge upstream: "When overlay is on, don't clip the rect in order to support transparency"
Fix floating point comparisons, such that the PanelAnchored event actually fires.