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-9085-eec173be99eb&searchIndex=5
You can do it with the following JavaScript
<SPAN class="keyword token">var</SPAN> popup <SPAN class="operator token">=</SPAN> map<SPAN class="punctuation token">.</SPAN>infoWindow<SPAN class="punctuation token">;</SPAN> <SPAN class="token function">on</SPAN><SPAN class="punctuation token">(</SPAN>popup<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"maximize"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">function</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN> popup<SPAN class="punctuation token">.</SPAN><SPAN class="token function">resize</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="number token">300</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="number token">300</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
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).
Thanks. I will try that js way.
Probably but it'll take some playing around with the css this is something that is much simpler with JavaScript.
Anyway to do this with css?
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.