Hi,
We want to switch to svg-icons because we are getting a lot more users with HiDPI screens. With a hidpi screen the 16px icons are looking blurry.
When hovering a button with a svg icon, the icon “flickers” or, in Firefox, even sometimes disappears completely until I hover the button again. See the attached code for reproduction.
This is reproducable with the latest downloadable version of version 11.1 (SmartClient_v111p_2018-04-07_Pro). Tested with the latest Chrome (65.0.3325.181) and Firefox builds - Edge behaves normally.
It seemt that this change was added between 11.1p_2018-02-23 Pro and 11.1p_2018-03-07 Pro.
Since then svgs are rendered in an "object" element instead of a img tag. This could lead to the flickering effect?
Regards,
We want to switch to svg-icons because we are getting a lot more users with HiDPI screens. With a hidpi screen the 16px icons are looking blurry.
When hovering a button with a svg icon, the icon “flickers” or, in Firefox, even sometimes disappears completely until I hover the button again. See the attached code for reproduction.
This is reproducable with the latest downloadable version of version 11.1 (SmartClient_v111p_2018-04-07_Pro). Tested with the latest Chrome (65.0.3325.181) and Firefox builds - Edge behaves normally.
It seemt that this change was added between 11.1p_2018-02-23 Pro and 11.1p_2018-03-07 Pro.
Since then svgs are rendered in an "object" element instead of a img tag. This could lead to the flickering effect?
Code:
Canvas.resizeControls(4); Canvas.resizeFonts(2); isc.VLayout.create({ ID: "layout", margin: 20, width: "100%", height: "100%", members: [ isc.Button.create({ ID: "button1", width: 200, title: "SVG Icon", icon: "https://upload.wikimedia.org/wikipedia/commons/8/86/Triforce.svg", }), isc.LayoutSpacer.create({ height: 20 }), isc.Button.create({ ID: "button2", width: 200, title: "PNG Icon", icon: "https://cdn2.iconfinder.com/data/icons/font-awesome/1792/home-256.png", }) ] })
Comment