Kindly share following details to exactly trace problem:
1: At what event you have written the script ?
2: Is there any condition before the script this.maxH - "" ?
Probably problem is your script, if there is no condition and it is called at form reopening.
It is at the exit event. There is no condition statement.