bugfix: calculate current config value or arg at runtime

This patch fixed the screen rotation bug that once going into landscape mode from document menu the config menu cannot rotate screen any more.