Categories | Question details Back To List | ||||||||||||||
toolbar image still visible after hiding button Hello, In IE7 I have a problem, when I hide a button on the toolbar, the button is not visible anymore, but the button image is still visible. So when I hide a lot of buttons, you have a lot of single images on the toolbar with space in between. When you go over the image with your mouse, the image disappears as well. In Firefox it works just fine. Could there be any reason why the image does not hide? Thanks, Dries Answer posted by Alex (support) on Nov 23, 2009 02:05 Hello, the issue wasn't reproduced locally. Does it reproduced in the standard samples, for example http://www.dhtmlx.com/docs/products/dhtmlxToolbar/samples/03_button/02_manipulation.html ? Answer posted by Dries on Nov 24, 2009 12:20 Hello Alex, I'm sorry, maybe I should have given you some more information. The problem does not occure in the standard sample. Also when I open this html file localy, the problem does not occure. var dhxLayout; Then I have two functions to show or hide the required buttons and a function to hide the complete toolbar. function hideButtons(){ function setToolbar(tbVisible){ When this page is opened, I call two functions to create the whole layout, to hide the toolbar. In the accordion, I have a separate menu (tree-view). When you click on one of the menus, the page will be opened in iframe frmWindow, which is in the right window of the layout. This works great. The buttons are hided and only the required buttons are vissible. BUT, unfortunately the images of all the hidden buttons are still visible in IE, not in firefox. Answer posted by Alex (support) on Nov 25, 2009 02:23 Hello, please check attached sample. Unnecessary images aren't shown after toolbar is displayed. Attachments (1)
Answer posted by Dries on Dec 03, 2009 14:19 Hello Alex, Thanks, that sample works just fine. Also when I copy the sample and modify little things, the sample still works. The toolbar has 4 buttons. When you click on "show toolbar", button 1, 3 and 4 should be hidden and buton 2 should only be shown. Attachments (1)
Answer posted by Alex (support) on Dec 04, 2009 02:42 Hello, we have managed to recreate the issue. But we can't get the reason for it. The possible solution is to move setToolbar('false') call from body onload to the init() function. The function should be called before dhxAccord.openItem("a1"); <body onLoad="init();">... function init(){ ... setToolbar('false'); dhxAccord.openItem("a1"); } Answer posted by Dries on Dec 04, 2009 07:24 Thanks! That did solve the problem for me. |