Select to view content in your preferred language

Popup appear by default to alternate location

716
1
Jump to solution
04-04-2022 11:03 AM
LefterisKoumis
Regular Contributor II

I'd like to have the popup to appear on the  bottom-right by default. With config below, the popup appears where the feature is , then you have to click the Dock icon to move it. After that it stays at the bottom-right for all subsequent clicks on features. How do I produce the popup at the bottom-right from the start without the need to click on Dock?

 

popup: {
        dockEnabled: true,  
        autoOpenEnabled: true,  
        dockOptions: {  
        buttonEnabled:true,      
        position: "bottom-right"
        }
      }

 

 

0 Kudos
1 Solution

Accepted Solutions
LaurenBoyd
Esri Contributor

Hi @LefterisKoumis ,

It looks like you need to set the breakpoint property to false within the dockOptions. Setting this property will disable docking at a breakpoint and allows the popup to be always docked if specified. See the following for a working example: https://codepen.io/laurenb14/pen/VwyyBMM?editors=1000

Hope this helps!

Lauren

View solution in original post

0 Kudos
1 Reply
LaurenBoyd
Esri Contributor

Hi @LefterisKoumis ,

It looks like you need to set the breakpoint property to false within the dockOptions. Setting this property will disable docking at a breakpoint and allows the popup to be always docked if specified. See the following for a working example: https://codepen.io/laurenb14/pen/VwyyBMM?editors=1000

Hope this helps!

Lauren
0 Kudos