flandreas / antares

Digital circuit learning platform
49 stars 6 forks source link

(Chrome) Web circuit viewer not zoomed to fit iframe size #781

Open flandreas opened 3 months ago

flandreas commented 3 months ago

Web pages containing Antares Web circuit viewers embedded as frames don't zoom to display the entire circuit with Chrome browser.

Screenshot 2024-07-04 at 10 17 54

Not reproducible with Safari.

Screenshot 2024-07-04 at 10 20 37
flandreas commented 3 months ago

Cannot reproduce in DEV on current master.

flandreas commented 1 month ago

The problem occurs in Chrome if the user changes the browser's zoom factor AFTER having opened a page containing an Antares circuit. If he changes the browser's zoom factor BEFORE opening the page, the circuit is displayed correctly.

This is the case with Chrome both on macOS and on Windows.