Project

General

Profile

Actions

Defect #36574

closed

context-menu on task

Added by Brice Beaumesnil over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
UI
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hello,

context-menu on right click on roadmap's or issues's page can be display in wrong place on Firefox browser (no problem on Chrome).

It's just because the div context-menu is append on content's div

On context-menu.js

document.getElementById("content").appendChild(menu);

need to be change. For example :

document.getElementById("footer").parentElement.appendChild(menu);

But it's need to be append to a full page DIV.

Thanks

Actions #1

Updated by Brice Beaumesnil over 2 years ago

It's linked to the theme used (we use PurpleMine)

And they add this code :

    // Fix issue with context menu position
    if (this.$main.css('position') === 'relative') {
      $(window).on('load', function () {
        $('#context-menu').appendTo('#wrapper3')
      })
    }

It's work on Chrome but not on Firefox.

Actions #2

Updated by Mizuki ISHIKAWA over 2 years ago

I have also seen in the past how the context menu was misplaced.

I just opened the roadmap page and the issues page in Firefox to see how it works, and I was able to open them in the context menu without any problems. Do you know of any other conditions that might reproduce the problem?
Since I don't know the conditions under which the problem occurs, I can't confirm that the code works.

Actions #3

Updated by Guillermo ML over 2 years ago

Could be related to Graphical bug with redmine 4.2.3 ?
We use PurpleMine2 with redmine 4.1.X and couldn't reproduce the error.

Actions #4

Updated by Brice Beaumesnil over 2 years ago

Yes i think it's related to this bug (i'm on redmine 4.2.4)

Actions #5

Updated by Marius BÄ‚LTEANU about 2 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid
Actions

Also available in: Atom PDF