You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling styleSheetText, e.g. to generated a <style> element, this function gives an empty String while when applied in a non ScalaFiddle environment this function works.
In a server-based (JVM) and a standalone Scala.js client application the style text is right generated.
An example is found here -template adjusted- with a working work around (hand-made css). By commenting out the overridden styleSheetText function the desired situation is achieved.
However in ScalaFiddle there is no style text put between the tags.
Findings:
In ScalaFiddle the function styleSheetText returns an empty String.
Well generated style code will be generated all other environments.
In all cases the class attributes are generated well
The internal allClasses member of the scalatags.stylesheet.StyleSheet returns a empty List in the ScalaFiddle case, while in other case a non-empty List will be returned.
This indicates that the internal allClasses0 must be (re-)set to Some(() => sourceClasses.value(this))
I hope the problem will be recognized, so an solution should be possible soon.
The text was updated successfully, but these errors were encountered:
The macro that generates the list of classes doesn't seem to work properly in ScalaFiddle (hard to say why). A quick workaround is to manually list your CSS classes like this,
When calling
styleSheetText
, e.g. to generated a<style>
element, this function gives an emptyString
while when applied in a non ScalaFiddle environment this function works.In a server-based (JVM) and a standalone Scala.js client application the style text is right generated.
An example is found here -template adjusted- with a working work around (hand-made css). By commenting out the overridden
styleSheetText
function the desired situation is achieved.However in ScalaFiddle there is no style text put between the tags.
Findings:
styleSheetText
returns an emptyString
.List
in the ScalaFiddle case, while in other case a non-emptyList
will be returned.allClasses0
must be (re-)set toSome(() => sourceClasses.value(this))
I hope the problem will be recognized, so an solution should be possible soon.
The text was updated successfully, but these errors were encountered: