I narrowed the problem down. The position of characters in the name text only gets messed up when using a spacer to right-align items in the toolbar, like this:
toolbar.clearAll();
toolbar.addText("start", 1, " ");
toolbar.addSpacer("start"); // Spacer cannot be added in XML, so we do it here toolbar.loadXML("http://localhost:8080/core2/GridToolbar?cat=" + catalogId);
Afterwards all text strings in the toolbar (text items, button names, etc.) gets messed up when containing a non-alphanumeric character. Colon seems to be displayed in the beginning all the time, and * seems to be displayed at the end all the time!?
toolbar.clearAll();
toolbar.addText("start", 1, " colon\:");
toolbar.addSpacer("start"); // Spacer cannot be added in XML, so we do it here
toolbar.addText("start2", 2, " colon2\:");
produces the right HTML when viewed in object inspector in Chrome. It just shows the colon in FRONT of the “colon2” text!?
<style>
.dhxtoolbar_spacer div{
direction:ltr
}
</style>
But it will be better, if you replace the dhtmlxToolbar.js file with the attached. dhtmlxtoolbar.rar (16 KB)
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan