You really shouldnt be doing this at all. How margins are implemented in the viewer is an internal detail. Trying to script it could well break badly if those internal details change in the future. There is no guarantee that those details will remain the same in the future.
|