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)


Added by Andrew Smith at 2012-02-14 03:51 am. Updated at 2012-03-21 08:43 pm.


Status:Declined Start date:2012-02-14
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:User interface
Target version:-
Remote issue URL: Affected version:3.0.0

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.


Screen_shot_2012-02-14_at_1.45.14_PM.PNG (62.2 kB) Andrew Smith, 2012-02-14 03:51 am

context_menu.css.diff (401 Bytes) Andrew Smith, 2012-02-14 03:51 am

context_menu.js.patch - Append menu to 'wrapper' and take scrollY into account when positioning. (1.1 kB) Andrew Smith, 2012-02-14 04:25 am


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.

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

Also available in: Atom PDF