adapte print panel content to the tool window size