I’m using the rtl dhtmlxMenu , initializing it from xml file , and it has no images ,
but still to the right of the text there is extra space, padding.
how can i remove it?
(i saw an old post from 2008 about the same problem but the solution there didn’t work)
I didn’t understand , the menu version I’m using does support rtl mode , it works good ,
did u mean that it does not support the padding inside the menu text?
var menu = dhxLayout.attachMenu();
menu.setSkin("dhx_blue");
menu.setImagePath("scripts/dhtmlxMenu/codebase/imgs/");
menu.setIconsPath("scripts/dhtmlxMenu/samples/common/imgs/");
menu.setRTL(true);
menu.loadXML("test.jsp");
and the rtl works o.k . . is there a way to remove the space befor the text?
You may try to remove the space using the following css class:
<style>
div.dhtmlxMenu_dhx_skyblue_SubLevelArea_Polygon_right div.dhtmlxMenu_dhx_skyblue_SubLevelArea_Item_Normal, div.dhtmlxMenu_dhx_skyblue_SubLevelArea_Polygon_right div.dhtmlxMenu_dhx_skyblue_SubLevelArea_Item_Disabled, div.dhtmlxMenu_dhx_skyblue_SubLevelArea_Polygon_right div.dhtmlxMenu_dhx_skyblue_SubLevelArea_Item_Selected {
padding:4px 4px 4px 44px;
}
</style>
It should be set after menu css libraries. This class is applied to all items in submenus. It means that there shouldn’t be items with images in sublevels.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan