Hi Experts,
We have a problem loading the library.css
there are two cases to compare:
Not working - Load by Fiori
Works OK - using our own HTML + View + Controller
More details:
in library.js:
sap.ui.getCore().initLibrary({
name: "name.of.my.lib",
noLibraryCSS: false,
...
});
I see the differences in the two cases in the loading in UI5 files -
Core.prototype.includeLibraryTheme()
=> Core.prototype._getThemePath()
=> var path = this._mThemeRoots[sThemeName + " " + sLibName] || this._mThemeRoots[sThemeName];
In the correct case the prefix gives: ../../../../../../
and full path is: ../../../../../../name/of/my/lib/themes/sap_bluecrystal/library.css
In the Fiori - incorrect case it gives: /sap/ui5/1/resources/
and full path is: /sap/ui5/1/resources/name/of/my/lib/themes/sap_bluecrystal/library.css
As if our library is inside UI5, which is not the case ![]()
SAPUI5 Version: 1.28.5
Could you please help us figure this out?
Thanks a lot,
Udi