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
That's http://dev.fckeditor.net/ticket/1982 you are welcome to try to find out any extra info as I would like to fix it as part of viewtopic.php?f=11&t=10726
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
Hi
I can see that the ticket
http://dev.fckeditor.net/ticket/1982
is closed.
There still seems to be some serious problems with:
1) Menus where you have more than two levels of sub menus - example:
Cell->Apply Cell style -> [List of cell styles]
In these cases, the menu doesn't behave well. The top menu items are no longer visible and the sub menus appears on the left side of it's parent elements instead of at the right side.
2) Third level menu groups cannot be taller than the main menu group. Example:
Main menu items:
Copy
Cut
Paste
Third menu items:
Cell style 1
Cell style 2
Cell style 3
Cell style 4
In this example: "Cell style 4" is not shown in IE7, because it doesn't let the group of third level menu items be taller than the group of main menu items.
You can some screenshots at:
http://www.dhtmlgoodies.com/screenshots/fckeditor_1.png
and
http://www.dhtmlgoodies.com/screenshots/fckeditor_2.png
In the second screenshot I have just move the mouse over "Apply cell style" menu item.