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
Font awesome characters are not shown; rather the code (e.g. fa:fa-server) appears, when htmllabels is set to false.
This has a knock on effect that the text no longer fits in the box.
With htmllabels set to true all works (though not in IE11; per #303).
Workaround:
Use the following code so we only set htmllabels to false when using IE:
var config = {
startOnLoad: true,
flowchart: {
useMaxWidth: false,
htmlLabels: (!IsIE()) //this line is key
}
};
mermaid.initialize(config);
Related IsIE function would be something like this:
function IsIE() { //other functions are available: http://stackoverflow.com/questions/19999388/check-if-user-is-using-ie-with-jquery
return (navigator.appName == 'Microsoft Internet Explorer' || navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0);
}
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Font awesome characters are not shown; rather the code (e.g.
fa:fa-server
) appears, when htmllabels is set to false.This has a knock on effect that the text no longer fits in the box.
With htmllabels set to true all works (though not in IE11; per #303).
Workaround:
Use the following code so we only set htmllabels to false when using IE:
Related IsIE function would be something like this:
The text was updated successfully, but these errors were encountered: