Select to view content in your preferred language

Move the popup widow in WAB

21866
36
Jump to solution
06-30-2015 07:22 AM
GeorgeKatsambas
Frequent Contributor

Is there a way to change the position of the popup window, or drag it with your mouse out of the way. As it is now the popup window open where you click and you cant move it at all. I know in Flex you could move it with the mouse.

Tags (2)
36 Replies
AdamVellutini
Occasional Contributor

Nevermind I found the answer reading your response to someone elses question.  Thanks so much!

0 Kudos
haThach
Regular Contributor

Tyler - Thanks a lot for your instruction to make the popups moveable. I got it to work in Google Chrome but not in IE 11. Any thought?

Thanks,

Ha T.

0 Kudos
TylerDunn2
Regular Contributor

Not sure why it's not working for you in IE 11. It works fine on my end. I'll keep experimenting and let you know if I find anything.

0 Kudos
RoySP
by
Regular Contributor

Thanks so much Tyler!

0 Kudos
AndresCastillo
MVP Regular Contributor

I see where you made a new Moveable class, but did you need dojo/dom-class at all?

0 Kudos
ShitalDhakal__GISP
Frequent Contributor

Hi Tyler Dunn

Thank you for posting this. Its super helpful for someone like me who has just started on js.

I tried changing my code like you suggested and was only partially successful to replicate. I changed my 'common' file  and was able to get the pointer changed into a move cursor.

But upon making subsequent changes on the utils.js file, the WAB stopped displaying any map at all. I went back and took out all the new codes I added and it looks like the addition of

function(Moveable, domClass)

is creating some anomaly.

I should also tell you that I couldn't find 'domClass' or 'dom-class' anywhere else in the code.

Can you please tell if there is anything I am doing wrong? 

Thanks in advance.

Shital

0 Kudos
TylerDunn2
Regular Contributor

Hey Shital,

When you added 'dojo/dnd/Moveable' and 'dojo/dom-class' to the define([ ] part of the code, did you have it in the same order you called it in the function( ) area? Ex:

define([

    'dojo/_base/lang',

    'dojo/_base/array',

    'dojo/_base/html',

    'dojo/_base/sniff',

    'dojo/_base/config',

   'dojo/dnd/Moveable',

    'dojo/io-query',

    'dojo/query',

    'dojo/NodeList-traverse',

    'dojo/Deferred',

    'dojo/on',

    'dojo/dom-class',

    'dojo/json',

    'dojo/cookie',

    'dojo/number',

    'dojo/date/locale',

    'dojox/encoding/base64',

    'esri/lang',

    'esri/arcgis/utils',

    'esri/SpatialReference',

    'esri/geometry/Extent',

    'esri/geometry/Multipoint',

    'esri/geometry/Polyline',

    'esri/geometry/Polygon',

    'esri/geometry/webMercatorUtils',

    'esri/tasks/GeometryService',

    'esri/tasks/ProjectParameters',

    'esri/urlUtils',

    'esri/request',

    'esri/graphicsUtils',

    'jimu/portalUrlUtils',

    './shared/utils'

  ],

function(lang, array, html, has, config, Moveable, ioQuery, query, nlt, Deferred, on, domClass, json, cookie,

  dojoNumber, dateLocale, base64, esriLang, arcgisUtils, SpatialReference, Extent, Multipoint,

  Polyline, Polygon, webMercatorUtils, GeometryService, ProjectParameters,

  esriUrlUtils, esriRequest, graphicsUtils, portalUrlUtils, sharedUtils)

ShitalDhakal__GISP
Frequent Contributor

This worked like a charm Tyler. Thank you so much. Much appreciated!

0 Kudos
MichaelRobb
Honored Contributor

doesn't work with WABde 2.5.   Thoughts?

Not sure what version you are referring to but 2.5 looks like this:

define([
'dojo/_base/lang',
'dojo/_base/array',
'dojo/_base/html',
'dojo/_base/sniff',
'dojo/_base/config',
'dojo/io-query',
'dojo/query',
'dojo/NodeList-traverse',
'dojo/Deferred',
'dojo/promise/all',
'dojo/on',
'dojo/json',
'dojo/cookie',
'dojo/number',
'dojo/date/locale',
'dojo/i18n!dojo/cldr/nls/number',
'dojox/encoding/base64',
'esri/lang',
'esri/arcgis/utils',
'esri/dijit/PopupTemplate',
'esri/SpatialReference',
'esri/geometry/Extent',
'esri/geometry/Multipoint',
'esri/geometry/Polyline',
'esri/geometry/Polygon',
'esri/geometry/webMercatorUtils',
'esri/tasks/GeometryService',
'esri/tasks/ProjectParameters',
'esri/tasks/FeatureSet',
'esri/symbols/PictureMarkerSymbol',
'esri/urlUtils',
'esri/request',
'esri/tasks/query',
'esri/tasks/QueryTask',
'esri/graphicsUtils',
'jimu/portalUrlUtils',
'./shared/utils'
],

function(lang, array, html, has, config, ioQuery, query, nlt, Deferred, all, on, json, cookie,
dojoNumber, dateLocale, nlsBundle, base64, esriLang, arcgisUtils, PopupTemplate, SpatialReference,
Extent, Multipoint, Polyline, Polygon, webMercatorUtils, GeometryService, ProjectParameters, FeatureSet,
PictureMarkerSymbol, esriUrlUtils, esriRequest, EsriQuery, QueryTask, graphicsUtils, portalUrlUtils, sharedUtils
)

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Michael,

   Still worked fine for me in 2.5

0 Kudos