Hi
We are experiencing some problems with the context menu in IE7. The problem occures when you have sub menus, example 3 levels.
We experience two problems:
1) The sub menus are not correctly positioned
2) The height of a group of sub menu items CANNOT exceed the height of the parent group of menu items/menublock. Example: If you have five top level menu items with a total height of 100 pixels, sub menu groups cannot exceed this 100 pixel height.
We have tried to narrow down the problem, and think it's a problem either with the window.createPopup() method in IE7, or a problem inside fckpanel.js.
This problem is easy to reproduce.
Inside fckpanel.js, try to change:
to
I.e. set the height of the menu to 1500 pixels if it's a sub menu. You will see that in IE7, the sub menu is displayed with the same height as the parent group of menu items.
We haven't figured out exactly why this happens, but it may be related to the context where the window is created, i.e. the line
at the top of fckpanel.js.
If it's not possible to use window.createPopup in IE7, it would be nice to have an alternative.
Thank you
We are experiencing some problems with the context menu in IE7. The problem occures when you have sub menus, example 3 levels.
We experience two problems:
1) The sub menus are not correctly positioned
2) The height of a group of sub menu items CANNOT exceed the height of the parent group of menu items/menublock. Example: If you have five top level menu items with a total height of 100 pixels, sub menu groups cannot exceed this 100 pixel height.
We have tried to narrow down the problem, and think it's a problem either with the window.createPopup() method in IE7, or a problem inside fckpanel.js.
This problem is easy to reproduce.
Inside fckpanel.js, try to change:
// Second call: Show the Popup at the specified location, with the correct size. this._Popup.show( x, y, iMainWidth, eMainNode.offsetHeight, relElement ) ;
to
// Second call: Show the Popup at the specified location, with the correct size. var tmpHeight = relElement ? 1500 : eMainNode.offsetHeight; this._Popup.show( x, y, iMainWidth, tmpHeight , relElement ) ;
I.e. set the height of the menu to 1500 pixels if it's a sub menu. You will see that in IE7, the sub menu is displayed with the same height as the parent group of menu items.
We haven't figured out exactly why this happens, but it may be related to the context where the window is created, i.e. the line
this._Popup = this._Window.createPopup() ;
at the top of fckpanel.js.
If it's not possible to use window.createPopup in IE7, it would be nice to have an alternative.
Thank you

Re: Problem with the context menu in IE7
Re: Problem with the context menu in IE7
The positioning problem is the smallest issue here. Missing menu items is the big problem.
I have tried to dig into this for some hours now, and as mentioned, it seems to be related to the context where the popup window is created.
Each popup window seems to be created in it's own context(this._Window). So maybe there's some kind of nesting.
Just for some debugging purpose, I tried to replace this._Window with "window". It didn't solve the problem of course, but it did show the sub menu with it's correct height.
If I find out anything else, I will let you know. I hope you also get a chance to look at this soon.
Thanks again
Re: Problem with the context menu in IE7
http://dev.fckeditor.net/ticket/1982
http://www.dhtmlgoodies.com/screenshots/fckeditor_1.png
http://www.dhtmlgoodies.com/screenshots/fckeditor_2.png