issue #23966: apply opacity hack on resize