Comments (4)
Are you seeing the same behavior on the example page?
from nspopover.
The biggest issue is edge detection. If the popover pops outside the viewport, it needs to dynamically shift so that the contents are inside.
from nspopover.
I see. We had to do this for ng-context-menu as well. We can probably use a similar implementation (comparing against the document dimensions and subtracting the difference from the popover's position): https://github.com/ianwalter/ng-context-menu/blob/development/src/ng-context-menu.js#L35-L58
from nspopover.
Sorry for late replay .. Yes example page has same issue. It pops out of view port. @httpete thanks for elaborating my question. And great work for contextmenu 👍
from nspopover.
Related Issues (20)
- button component
- [Newbie] Popover doesn't show with lightbox HOT 1
- popovers won't run outsideClickHandler if another popover is clicked on
- Open nsPopover on element 2 when element 1 is clicked
- module stopped my running application HOT 1
- nsPopover misplaced tooltip rectangle (with triangle) in first click
- Resizing popover
- ns-popover-group doesn't work with click trigger
- No more releases? HOT 2
- Officially maintained on npm? HOT 2
- Could we directly use the source file HOT 3
- Top/Bottom Alignment Incorrectly Positions Triangle
- Loading template from external path is not working
- nsPopover demo wording
- ns popover popup delay, doesnt work properly
- nsPopover.js files in exmple and src directories are differente
- How can I get the popover's status of open or close by using callback?
- Dropdown onchange event closes the popover
- Is there a release coming with the latest commits? HOT 1
- Show popover in modal HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nspopover.