powsybl / powsybl-dev-tools

2 stars 1 forks source link

Fix Fit To Content #45

Closed louislhotte closed 2 years ago

louislhotte commented 2 years ago

Please check if the PR fulfills these requirements (please use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes)

Does this PR already have an issue describing the problem ? No

What kind of change does this PR introduce? Bug fix

What is the current behavior? When SVG is small enough to fit entirely in the webview, zooming in does not change the variables and therefore does not let the user use the button Fit To Content even though it should.

What is the new behavior (if this is a feature change)? The button Fit To Content always works properly.

Does this PR introduce a breaking change or deprecate an API? No