Select to view content in your preferred language

Why there is behavior difference between Popup and PopupMobile in Search Widget ?

1525
2
09-15-2016 02:05 AM
FlavieMORAUX1
Frequent Contributor

Hi,

I had a question about Popup/PopupMobile  of Search widget (Web AppBuilder Developper 2.1).

On mobile mode, PopupMobile is used. Event hide/show are start off when user maximize or minimize PopupMobile.

  • Opening ==> "show" event
  • Maximize ==> "hide" event
  • Minimize ==> "show" event
  • Closing ==> "hide" event

On no mobile mode, Popup is used. No event is start off when user maximize or minimize Popup.

  • Opening ==> "show" event
  • Maximize ==> no event
  • Minimize ==> no  event
  • Closing ==> "hide" event

To see add folowwing code in startup function (..\widgets\Search\Widget.js):

// Add log in console ==> show event on infoWindow
this.own(
   on(this.map.infoWindow, 'show', lang.hitch(this, function() {
      console.log("[widgets][Search][Widget][startup] infoWindow ==> show");
   }))
);
// Add log in console ==> hide event on infoWindow
this.own(
   on(this.map.infoWindow, 'hide', lang.hitch(this, function() {
      console.log("[widgets][Search][Widget][startup] infoWindow ==> hide");
   }))
);

Why there is behavior difference between Popup and PopupMobile in Search Widget ?

About PopupMobile is it normal to start off hide event when maximize? because it start off the reset search (graphic is deleted).

Thanks,

Flavie

2 Replies
FlavieMORAUX1
Frequent Contributor

About the fact that graphic is deleted when maximize PopupMobil there is a bug :

BUG-000099349 Searching for a location in a Web AppBuilder for ArcGIS application does not retain the search result point when used on a mobile device.

Finally regarding question about event I am still unanswered. I will try support side.

FlavieMORAUX1
Frequent Contributor

About behavior difference between Popup and PopupMobile there is a bug :

BUG-000099950 - Popup and PopupMobile behave differently when calling show and hide event for minimize and maximize

0 Kudos