I'm writing a special image format preview app with QuickLook extension. What's the preferred way to resize the QuickLook preview panel so that it fits the screen?
https://github.com/yllan/JXLook/issues/12
Manually setting preferredContentSize worked for image that's smaller than the screen size.
However, if I need to scale down to fit the preview window in screen, is there some way to tell the window just fit the content size to screen?
I tried manually calculate the size with window.constrainFrameRect but it didn't return the desired size that fitting into screen when calling in QuickLook extension. (It worked in main app though)
Selecting any option will automatically load the page