ChiliProject is not maintained anymore. Please be advised that there will be no more updates.
We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.
Right click content menu appears in incorrect location (Bug #881)
Description
The context menu is appearing well below the position of the mouse pointer.
The problem is with how the mouse event is handled. The render_x and render_y positions in 'context_menu.js' are based on the position within the window as where the CSS for the content menu is based on the parent of the menu.
Either the JS could be updated to change the way the position is worked out so that it takes into account the position of the parent element, or the easier fix is to update the CSS file and change position:absolute to position:fixed.
The attached diff shows the change.
Related issues
related to Feature #899: Create a jQuery verison of the context menu | Closed | 2012-02-17 |
History
Updated by Andrew Smith at 2012-02-14 04:25 am
Ok, that previous patch wasn't the best. If you have issues that scroll the window the positioning off still.
I've created a new patch that appends the context_menu to 'wrapper' instead of 'content' and when working out the correct position to place the menu it also takes into account the scrollY position.
- File context_menu.js.patch added
Updated by Felix Schäfer at 2012-03-17 07:36 pm
The CSS fix works, the js fix works only on the issue list, not for the subissue list on the issue view. Any reason the js fix is better?
Updated by Felix Schäfer at 2012-03-17 07:38 pm
Or not, the CSS fix doesn't work if you've scrolled in the page. The JS version doesn't work for the subissue list though, so no good yet :-/
Updated by Felix Schäfer at 2012-03-20 09:45 pm
(Related to #899 as the later would make this obsolete)
Updated by Felix Schäfer at 2012-03-21 08:43 pm
Obsoleted by #899
- Status changed from Open to Declined