Is the fabric for the headliner portion of the sunroof glued on after it folds around the inner sunroof panel, or is it clipped?

Saw a thread talking about clips for it. The fabric on mine has fallen completely off the front edge of the inner panel. Trying to find out how it should be re-attached.

Thanks.