The dissociation of heavy quarkonia in the constrained space is calculated at leading order compared with that in infinitely large medium. To deal with the summation of the discrete spectrum, a modified Euler-Maclaurin formula is developed as our numerical algorithm. We find that with the constraint in space, the dissociation of quarkonia at early time becomes negligible.