Chrome + css3d: center plugin in parent not working

  • I have a custom plugin and want it to be centered within a hotspot. So I set the parent to the hotspot and set align and edge of the plugin to center. Now if I set x and y of the plugin it should be the distance to the hotspot.

    I generate the hotspot dynamically, but in xml it should look like this:

    Code
    <hotspot name="hp_123" url="useSVG.js" renderer="css3d"
    ath="10" atv="10"
    width="150" height="150"
    />
    <plugin name="custom_hp_123" url="useSVG.js"
    parent="hotspot[hp_123]" type="container"
    width="50" height="50" align="center" edge="center"
    x=0 y=0 />

    This works in Firefox but not in Chrome (59). I updated to 1.19-pr10. The css3d-rendering of the hotspot seems to be the issue. In this forum I've found some other issues where chrome+css3d where causing it.

    I'll try the hotspot without css3d now. Although klaus said css3d might be needed for html-elements like svg in this post .


    Und jetzt merke ich erst, dass ich auch direkt auf deutsch hätte schreiben können.. *g*

  • So for some reason the plugin was missing a style (top:0px), therefore the plugin in the hotspot was at a wrong position.
    After setting that manually the whole thing worked with the initial setup.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!