[WIP] popup: add specs for calcPossibleDrawingParams

Fixes #1006
Can't understand what these offsets means.