The magic is to add
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
at the beginning of the html page. Thanks to this
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
def viewerWrapper = Group {
content: [
viewerScroll,
contents
]
}
def viewerContent = [
viewerWrapper,
... //other components
def viewerWrapper = Group {
content: [
viewerScroll,
]
}
def viewerContent = [
viewerWrapper,
contents
... //other components
var shelf : XShelfView = XShelfView {
showText: false,
...
}
var title : Label = Label {
text: bind shelf.imageNames[shelf.index] as String
font: Font.font("SansSerif", FontWeight.BOLD, 14);
effect: DropShadow {color: Color.WHITE, radius: 5, blurType: BlurType.ONE_PASS_BOX}
}