Disable Docking

526
1
Jump to solution
11-23-2018 01:28 PM
ShawnRoberts1
Occasional Contributor

I've been working on customizing a popup and just have a quick question. I've adjusted the widths and breakpoints as required, and don't want  it to dock. I feel like this one is fairly easy, and I'm just missing something small.

My current code for that portion is:

const view = new MapView({
container: "viewDiv",
map: map,
zoom: 10,
center: [-80.899567, 44.434577],
popup: {

              dockEnabled: false,

              dockOptions:{buttonEnabled: false}

             };
});

I figured turning the "dockEnabled" to false would do it, but apparently not.  Am I missing something?

Thanks in advance.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Shawn,

  No there is no dockEnabled property on the dockOptions object. What you have to set to prevent docking is the breakpoint false. 

Set to false to disable docking at a breakpoint.

https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#dockOptions 

View solution in original post

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

Shawn,

  No there is no dockEnabled property on the dockOptions object. What you have to set to prevent docking is the breakpoint false. 

Set to false to disable docking at a breakpoint.

https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#dockOptions 

0 Kudos