Hi,
I’m new in Vaadin and I should show a SVG graphic in the Internet Explorer. That works but when I will zoom into to graphic the Internet Exploerer 9 does not refresh the image. In the Chrome Browser it works.
Do you know a opportunity how I could fix this?
My Example Coding:
SVG Image init
String basepath = VaadinService.getCurrent().getBaseDirectory().getAbsolutePath();
FileResource resource = new FileResource(new File(basepath + "/WEB-INF/images/SVG_logo.svg"));
image = new Image("SVG Logo", resource);
image.setWidth("637.79523px");
image.setHeight("637.79987px");
upPanel.setContent(image);
Button clickListener
private class ZoomIn implements ClickListener {
@Override
public void buttonClick(final ClickEvent event) {
zoomIn();
}
ZoomIn-Method:
image.setWidth(image.getWidth() * (1 + ZOOM_FAKTOR), image.getWidthUnits());
image.setHeight(image.getHeight() * (1 + ZOOM_FAKTOR), image.getHeightUnits());