Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sub menu out of position #533

Open
chitgoks opened this issue May 25, 2017 · 23 comments
Open

sub menu out of position #533

chitgoks opened this issue May 25, 2017 · 23 comments
Labels

Comments

@chitgoks
Copy link

please see attached. dev console in chrome is open to simulate this.

when the first context menu shows, it shows it above the dev console. once i navigate over to the sub menu, it does not position itself correctly.
submenu

@bbrala
Copy link
Member

bbrala commented Jun 12, 2017

Do you use the position.min.js or just library itself?

@chitgoks
Copy link
Author

hi. only library itself

@bbrala
Copy link
Member

bbrala commented Jun 12, 2017

Ok thanks

@bbrala
Copy link
Member

bbrala commented Sep 8, 2017

This should be fixed in master right now. :)

See #565

@bbrala bbrala closed this as completed Sep 8, 2017
@chitgoks
Copy link
Author

chitgoks commented Sep 8, 2017

hi @bbrala it works now if jquery.position.min.js is included. so new fix requires this javascript file to be loaded?

@AliShahrivarian
Copy link
Contributor

hi @chitgoks , sorry, I forgot to check my PR on sub menu (because my issue was on root contextMenu). I will correct your issues in next days.

@chitgoks
Copy link
Author

hi ali that is ok i will wait

thank you for taking time for this

@bbrala bbrala reopened this Sep 10, 2017
AliShahrivarian added a commit to AliShahrivarian/jQuery-contextMenu that referenced this issue Sep 10, 2017
AliShahrivarian added a commit to AliShahrivarian/jQuery-contextMenu that referenced this issue Sep 10, 2017
@AliShahrivarian
Copy link
Contributor

AliShahrivarian commented Sep 10, 2017

Hi again @chitgoks
please use these two link and check if your problem solved:
jquery.contextMenu.js
jquery.contextMenu.css

@chitgoks
Copy link
Author

menu

Hi ali, problem not solved yet. this is the result

@AliShahrivarian
Copy link
Contributor

Ok, I got the problem.
I will fix it. (I'm going to work now :) I will check it in my free time)

@bbrala
Copy link
Member

bbrala commented Sep 11, 2017

Thanks for the effort @Alisharivarian

AliShahrivarian added a commit to AliShahrivarian/jQuery-contextMenu that referenced this issue Sep 11, 2017
@AliShahrivarian
Copy link
Contributor

AliShahrivarian commented Sep 11, 2017

Don't mention it @bbrala 👍
@chitgoks could u check these files again? Sorry I'm using remote desktop and it's hard to test correctly.(it's too slow)
jquery.contextMenu.js
jquery.contextMenu.css

AliShahrivarian added a commit to AliShahrivarian/jQuery-contextMenu that referenced this issue Sep 11, 2017
AliShahrivarian added a commit to AliShahrivarian/jQuery-contextMenu that referenced this issue Sep 11, 2017
@chitgoks
Copy link
Author

works good!

@chitgoks
Copy link
Author

ill wait till the minifednfiles are updatd thank you

@AliShahrivarian
Copy link
Contributor

You're welcome
I will make PR.

@bbrala
Copy link
Member

bbrala commented Sep 13, 2017

Thanks for the PR. I probably won't be able to test this the next 2 weeks since I'm on vacation. But will do when I come back.

@bbrala
Copy link
Member

bbrala commented Oct 2, 2017

@AliShahrivarian I've checked the PR, but the position:fixed; you added breaks if you scroll down a bit, everything is relative to the browser window now.

@chitgoks
Copy link
Author

chitgoks commented Oct 3, 2017

hi bbrala. thank you. please post a comment once the minified files are updated as well

@AliShahrivarian
Copy link
Contributor

@bbrala
There is some way to correct the positioning issue.
keeping current solution and:
1- setting event on body scroll, so we can change position of opened contextMenu with scroll change.
2- preventing other elements from scrolling on opened contextMenu

Or:
The current implementation of menu and sub menu is not good for solution that I implemented so:
1- keep current implementation of subMenu behavior and just append it to body on contextMenu open (so we can position it independently) and after closing subMenu, sending back to its parent element.
2- refactoring current code and pushing subMenu's in element Data or keeping them in variable then on opening contextMenu we will append them to the body.

@bbrala
Copy link
Member

bbrala commented Oct 10, 2017

We can't really stop scrolling or append the contextmenu to the element is opens on. This will open the plugin to loads of new bugs regarding positioning.

I don't completely understand you last two suggestions to be honest, i'll try to read them again in the morning when i'm a bit more fresh :)

AliShahrivarian added a commit to AliShahrivarian/jQuery-contextMenu that referenced this issue Oct 26, 2017
AliShahrivarian added a commit to AliShahrivarian/jQuery-contextMenu that referenced this issue Oct 26, 2017
@AliShahrivarian
Copy link
Contributor

hi @chitgoks
Sorry I have a lot of works to do nowadays.
I did commit on for min version in my repo. You can get it.
I'm working on scroll issue.

@chitgoks
Copy link
Author

thank you ali

AliShahrivarian added a commit to AliShahrivarian/jQuery-contextMenu that referenced this issue Nov 24, 2017
AliShahrivarian added a commit to AliShahrivarian/jQuery-contextMenu that referenced this issue Nov 24, 2017
@AliShahrivarian
Copy link
Contributor

AliShahrivarian commented Nov 24, 2017

I added an option for using scroll mode for now.
"hasOverboundaryScroll"
@bbrala, unfortunately I didn't resolve scroll problem yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants