prevent ebook relayout when switching tabs