Fixed issue with horizontal offset for exporting context button not working. Closes #1654.