Is the Ngx-bootstrap popover automatic positioning malfunctioning when placed on the right side of the screen?

I am currently facing an issue while implementing popovers on our application using Angular 6.0.1, Ngx-bootstrap 2.0.5, and Bootstrap 4.1.1. The problem arises when I use 'auto' positioning for the popovers, specifically on the right side of the screen. In this scenario, the popovers do not behave as expected. While the Left and Center elements work fine by placing the popover on top or to the right, the right side still sets it to 'top' and attempts to resize the popover area.

Due to the dynamic nature of a lot of our content, I cannot predict when this issue will occur and rectify it by manually setting it to 'left', for example.

It would be ideal if, in this case, the content could be positioned on the left side of the button. Any additional help or advice regarding this matter would be greatly appreciated.

I have been unable to set up a working stackBlitz demo to showcase this bug, but we are generating the popover with the following code:

<button popoverTitle="Info" popover="auto auto auto auto auto auto" placement="auto" container="body" triggers="hover tap"> Right </button>

The Left button functions correctly by positioning the content to the right: https://i.sstatic.net/Vs4MI.png

Similarly, the Center button also works as expected by positioning the content at the top: https://i.sstatic.net/pCkIH.png

However, the right button places the content at the top and attempts to resize it (the size of the content changes intermittently before stabilizing): https://i.sstatic.net/CjmpO.png

Answer №1

Have you experimented with using

[adaptivePosition]="true"

I can't say for certain, but it solved a similar problem for me in the past.

Wishing you all the best!

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Setting up angular-cli project for rc5- Step by step guide

Trying to integrate angular-cli with angular 2 rc5 but facing challenges: The issue of 'Promise' not being found After attempting to install 'npm install -g angular-cli@webpack', typings did not get installed, resulting in WebStorm un ...

Modules that are imported in the AppModule will not be accessible in other modules

Suppose this represents my AppModule: @NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, AppRoutingModule, MaterialModule, HomeModule ], exports: [ MaterialModule ], providers: [], bootstrap: [App ...

Even with manual installation, the npm package still encounters dependency errors

Having trouble implementing the Imgur package from NPM into my Angular web app. The installation and import seemed to go smoothly, but when initializing a variable with the package, I encounter compile errors pointing to missing dependencies like 'cry ...

Upgrading Bootstrap from version 3.4 to 5.3 in a .NET project

I have a website project created using .Net Framework 4.7.2. Currently, I am utilizing Bootstrap version 3.4.1 from here. Since Bootstrap 3.4 is now in an end-of-life phase, I need to upgrade to the latest version, 5.3. Upon replacing the old version fil ...

Items on Bootstrap have been expanded to fit larger screens

I'm currently working on a webpage () and facing an issue with the size of objects on a specific screen resolution. When users click on items in the accordions, multiple information cards are displayed. However, on larger screens, these cards appear ...

Show a roster of individuals by inputting values that will populate the list with their names

I'm attempting to showcase a list of users by taking the value from an input and using it as a parameter in a get() method. After receiving the response from the get() method, I am pushing it into an object and then trying to display this object in th ...

Ionic 4's http.get.subscribe method fails to retain the retrieved value

I'm aware this might be a repeated question, but I haven't come across a straightforward answer yet, so here it goes. Below is the code snippet in question: fetchData() { let dataArray: Array<any> = [, , ,]; this.prepareDataReque ...

Dynamically pass a template to a child component

How can I dynamically load content on my page based on the active navigation point? export class Sub_navigation_item { constructor( public title: string, public templateName: string ) {} } I have a navigation item with an ID from an ...

Angular: Enhancing URL links

Recently, I discovered a function in my code that allows me to cycle through different pictures and change the URL accordingly. The initial URL is obtained using angular routes, where the "domain" parameter consists of the domain.id and the domain.category ...

Keep moving the box back and forth by pressing the left and right buttons continuously

Looking to continuously move the .popup class left and right by clicking buttons for left and right movement. Here is the js fiddle link for reference. This is the HTML code structure: <button class="right">Right</button> <button class="l ...

Scrolling text blocks on mobile devices

When viewing the website on a desktop, everything works perfectly. However, when accessing it on a mobile device and trying to scroll down, only the text moves while the page remains stationary. The website utilizes skrollr core for animations. I have alre ...

Numerous Angular projects nestled neatly within one single overarching project

As my angular project continues to grow, the number of files is increasing and the overall size of the project is expanding I am considering breaking the project into multiple parts. I am thinking of implementing a microservice architecture For instance ...

Is there a way to deactivate a tab when it's active and reactivate it upon clicking another tab in Angular?

<a class="nav-link" routerLink="/books" routerLinkActive="active (click)="bookTabIsClicked()" > Books </a> I am currently teaching myself Angular. I need help with disabling this tab when it is active ...

Embeddable javascript code can be enhanced by incorporating references into the header

I have developed a basic calculator application using HTML, JavaScript, JQuery, and CSS. My intention is to allow others to embed this calculator app on their own web pages by utilizing a file named generate.js. Within this file, there are several documen ...

The candy stripes on a loading bar zebra assist in creating a unique and

I'm in the process of creating my portfolio and I'd like to incorporate unique animated loading bars, such as vertical or horizontal candy stripes, to showcase my coding skills. Can anyone suggest a specific programming language or tool that woul ...

Stay tuned for Quasar's input validation event notifications

Within my Vue3 Quasar application, I have implemented a component structure similar to the following: <template> <div class="q-pa-md"> <div id="myCustomLabel">{{ props.label }}</div> <q-input r ...

Is there a way to store image URLs in a fashionable manner?

Hey there! I've been working on creating a HTML page that showcases multiple images. Everything is running smoothly on my localhost, but when I try to access it online, the images take forever to load. Any suggestions on how I can cache image URLs in ...

varying shades for primeng's p-rating

How can I customize the color of stars in multiple p-rating elements within the same component? Is there a way to style stars using primeng or angular? .html <p-rating [ngModel]="inputData?.rating" readonly="true" stars="5"[cancel]="false" style="flo ...

Guide on incorporating content from external pages into a modal using the latest version of Bootstrap, 4.4.x

I am looking to incorporate content from an external page into a Bootstrap 4.4 modal. You can view my demo here. JS: $('#theModal').on('show.bs.modal', function (e) { var button = $(e.relatedTarget); var modal ...

Should the HTML inputs be positioned within the label or placed outside of it?

Check out this site for some on/off switches: <div class="onoffswitch"> <input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch" checked> <label class="onoffswitch-label" for="myonoffswitch"> < ...