<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 4.29 - Popup title disappears in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-popup-title-disappears/m-p/1482055#M84757</link>
    <description>&lt;P&gt;It looks like the popup adjusts the display of the actions based on the width of the map view, not the width of the popup.&amp;nbsp; What is the requirement to have the popup be 450px all the time rather than adjust based on the width of the app?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2024 14:16:13 GMT</pubDate>
    <dc:creator>Justin_Greco</dc:creator>
    <dc:date>2024-05-31T14:16:13Z</dc:date>
    <item>
      <title>4.29 - Popup title disappears</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-popup-title-disappears/m-p/1481043#M84747</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;since updating to ArcGIS 4.29 (I came from version 4.27 before), I've noticed that the titles of my action buttons in the popups disappear if the image area falls narrower than a specific value.&lt;/P&gt;&lt;P&gt;So far we have been able to counteract the responsive behavior with the following global CSS:&lt;/P&gt;&lt;LI-CODE lang="css"&gt;.esri-view-width-less-than-large .esri-popup__action-text {
  display: flex !important;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This no longer works with the new update, which is a pity, the title even disappears if only the standard zoom action button is there, although there would definitely be enough space to render the title.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question&lt;/STRONG&gt;: How can I reactivate the titles? (My screen will never be “too narrow” for my use case)&lt;/P&gt;&lt;P&gt;Additional info:&lt;BR /&gt;- I use Angular version 17 with the NPM package &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/642472"&gt;@ArcGIS&lt;/a&gt;/core@4.29.10&lt;BR /&gt;- I usually work with popup templates in feature layers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 13:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-popup-title-disappears/m-p/1481043#M84747</guid>
      <dc:creator>n1kl4s</dc:creator>
      <dc:date>2024-05-30T13:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: 4.29 - Popup title disappears</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-popup-title-disappears/m-p/1481061#M84749</link>
      <description>&lt;P&gt;Could you post a screenshot of what the popup looks like?&amp;nbsp; Do you have any other customizations in your popup CSS?&amp;nbsp; Popups were refactored at 4.28 to use Calcite.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 13:22:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-popup-title-disappears/m-p/1481061#M84749</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2024-05-30T13:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: 4.29 - Popup title disappears</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-popup-title-disappears/m-p/1481820#M84754</link>
      <description>&lt;P&gt;Hey, sure! This is what the popup looks like when there is “enough space”, i.e. the screen width is above the calcite breakpoint (the goal is that it always looks like this):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="n1kl4s_0-1717137071398.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/105871iCC6A87CD26CA04B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="n1kl4s_0-1717137071398.png" alt="n1kl4s_0-1717137071398.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is what it looks like when the screen is “too narrow”:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="n1kl4s_3-1717137163144.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/105874iFD88CD06FC348556/image-size/medium?v=v2&amp;amp;px=400" role="button" title="n1kl4s_3-1717137163144.png" alt="n1kl4s_3-1717137163144.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In my eyes there is enough space, the chrome element inspection also shows that the popups are both 450px wide (as expected, you will see next).&lt;BR /&gt;Otherwise, the only other custom styling for the popups is the following:&lt;/P&gt;&lt;LI-CODE lang="css"&gt;.esri-view-width-less-than-large .esri-popup__action-text {
  display: flex !important;
}

.map {
  ::ng-deep {
    .esri-popup__main-container {
      width: 450px !important;
    }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;And I read in the changelog that the popups now use the calcite design, but I'm at a loss as to how to prevent the annoying disappearance of the ActionButton titles.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 06:41:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-popup-title-disappears/m-p/1481820#M84754</guid>
      <dc:creator>n1kl4s</dc:creator>
      <dc:date>2024-05-31T06:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: 4.29 - Popup title disappears</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-popup-title-disappears/m-p/1482055#M84757</link>
      <description>&lt;P&gt;It looks like the popup adjusts the display of the actions based on the width of the map view, not the width of the popup.&amp;nbsp; What is the requirement to have the popup be 450px all the time rather than adjust based on the width of the app?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 14:16:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-popup-title-disappears/m-p/1482055#M84757</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2024-05-31T14:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: 4.29 - Popup title disappears</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-popup-title-disappears/m-p/1482079#M84758</link>
      <description>&lt;P&gt;The display of the labels for the action buttons is set by the expanded attribute of the calcite-action-bar.&amp;nbsp; So one thing you could try is setting that attribute when the popup is displayed and when the map view is resized like this.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.watch('popup.selectedFeature', () =&amp;gt; expandActionBar());
view.on('resize', () =&amp;gt; expandActionBar());
const expandActionBar = () =&amp;gt; {
   let actionBar = document.querySelector('.esri-popup__main-container calcite-action-bar');
   if (actionBar) {
      actionBar.setAttribute("expanded", "");
   }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 14:44:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-29-popup-title-disappears/m-p/1482079#M84758</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2024-05-31T14:44:00Z</dc:date>
    </item>
  </channel>
</rss>

