[Bug 6006] incorrect paint of invisible buttons