NXP-15931: automatically compute height of the preview frame when in a fancy box; add missing class