Resize popup when Maxmized

686
4
Jump to solution
01-11-2018 08:12 AM
BrandonPrice
Occasional Contributor

Hello,

I would like to resize the esri popup when maxmized to a smaller size. I have not been able to do it using the chrome inspector. Any suggestions?


Brandon

https://community.esri.com/groups/web-appbuilder-custom-themes?sr=search&searchId=4671319c-5238-4b92...

0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Frequent Contributor

You can do it with the following JavaScript

        var popup = map.infoWindow;
          on(popup, "maximize", function(){
            popup.resize(300,300);
          });

You may also be able to get it to work with css but it might be a bit fiddly due to the different sections of the popup (sizer, title etc). 

View solution in original post

4 Replies
KellyHutchins
Esri Frequent Contributor

You can do it with the following JavaScript

        var popup = map.infoWindow;
          on(popup, "maximize", function(){
            popup.resize(300,300);
          });

You may also be able to get it to work with css but it might be a bit fiddly due to the different sections of the popup (sizer, title etc). 

BrandonPrice
Occasional Contributor

Anyway to do this with css?

0 Kudos
KellyHutchins
Esri Frequent Contributor

Probably but it'll take some playing around with the css this is something that is much simpler with JavaScript.  

BrandonPrice
Occasional Contributor

Thanks. I will try that js way.

0 Kudos