Embedded PDF controls missing on collapsed section
3️⃣v3
Hi,
I've got a form that requires PDF's to be embedded for view, for which I use something like:
Placeholder::make('preview' . $id) ->label('') ->content( function () use ($preSignedUrl) : HtmlString { return new HtmlString( '<iframe src="' . $preSignedUrl . '" width="100%" height="500vh"></iframe>' ); } );
Placeholder::make('preview' . $id) ->label('') ->content( function () use ($preSignedUrl) : HtmlString { return new HtmlString( '<iframe src="' . $preSignedUrl . '" width="100%" height="500vh"></iframe>' ); } );
Which works fine.
But, when I put the inside a collapsed section, on Edge the PDF controls (zoom) etc, do not appear. Works on Chrome fine.
If it is not in a collapsed section, or soemthing hidden to start with (like a tab etc), then it is ok. Otherwise the controls do not appear.
On Chrome it is fine whatever. But Edge has this issue.
Before I engineer a sledgehammer to crack this nut...is there a better way to do this (embed PDF in a form), or any fancy trick I can use to solve this?