Yeah hard-coding this could possibly work, but it definitely isn't the best solution (and this case you're still off by several pixels).