Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

library.css not loading when running in Fiori

$
0
0

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


Viewing all articles
Browse latest Browse all 8944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>