Update text margins when zoom factor changed