SmartClient Version: SNAPSHOT_v13.1d_2024-08-29/Enterprise Deployment (built 2024-08-29)
I can confirm it's fixed, thank you very much
Announcement
Collapse
No announcement yet.
X
-
Yes, this was added to 13.1 yesterday. Please give it a try and let us know
Leave a comment:
-
Originally posted by Isomorphic View PostWe've never used WebJars. The FileDownload servlet will discover static files on either the filesystem or discoverable via the classpath (ClassLoader.getResource()).
From a conversation with ChatGPT, it looks like we are meant to translate "/webjars" to "META-INF/resources/webjars". We can add that.
Leave a comment:
-
Originally posted by claudiobosticco View PostHello, will you please update this thread if you'll add the translation for webjars? TIA
Leave a comment:
-
I can confirm it's working. As currently I've defined a global js variable with the sprite:svg: prefix, I've added [APP] to that.
Maybe it will be simplified by the new Media subsystem.
Leave a comment:
-
hi Claudio,
We've fixed this one (and posted in the right thread this time!) - the change we made broke the regular appImgDir mechanism in various places, and we've reverted it for today's builds.
Instead, to load files relative to your page, you can use "[APP]file.svg" if it's a one-off, or call Page.setAppImgDir("") if you don't want the default value of "[APP]images/".Last edited by Isomorphic; 16 Jun 2024, 23:43.
Leave a comment:
-
Originally posted by Isomorphic View PostIn the meantime - we've added a new class, .icon, which sets CSS color, rather than SVG fill and stroke - you should see that in tomorrow's builds, dated March 30 and later.
Code:/* general icons */ /* .icon series just sets color - this is used automatically by font-icons and by SVG symbols that set "fill" or "stroke" to the special value "currentColor" */ .icon .iconOver, .iconDown, .iconDisabled { color: #8597a3; vertical-align: middle; transition: color 0.2s; }
Leave a comment:
-
Hello, I don't know if it's related to the above fix, but now I see png icons in the showcase which disappear on hovering, ie the tabs icons here https://www-demos.smartclient.com/sm...izeIncrease=10
Leave a comment:
-
Ok, this is fixed for tomorrow's builds, dated May 31 and later.
When the chevrons.svg sprite is local to your page, this code below will now show the proper icon, and the proper state, on mouseOver/mouseOut.
Code:isc.ToolStripButton.create({ ID: "alignRight", showRollOverIcon: true, icon: "sprite:svg:chevrons.svg#arrow_right;cssClass:icon;" });
Leave a comment:
-
Actually, never mind - we see the issue when the path is relative. We'll put a fix in today.
Leave a comment:
-
hi Claudio,
An additional "images" here likely implies an errant call to Page.getImgURL(), but some simple testing inhouse doesn't show an issue.
Can you show a brief sample that has the problem? You can use a builtin SVG in your test code - set your button.icon to "sprite:svg:[HELPERS]media/svg/chevrons.svg#arrow_right", or just it's direct stockIcon name "Chevron_Right" - either will work.
Leave a comment:
Leave a comment: