<?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 3.1 ResultAttributes extra newline in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/3-1-resultattributes-extra-newline/m-p/645028#M19134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've been playing with the SearchWidget and noticed that when the InfoWindow scrolls there's extra whitespace at the bottom. I've tracked it down to an extra newline in supportClasses.ResultAttributes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The newline can be removed by truncating "content" after it's built, or by prepending the newline instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Truncate example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
// Line 76
&lt;STRONG&gt;if (content.length &amp;gt; 0 &amp;amp;&amp;amp; content.charAt(content.length - 1) == "\n")
&amp;nbsp; content = content.substr(0, -1);&lt;/STRONG&gt;
resultAttributes.content = content;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Prepend example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
// Line 154 - 161
if (textDirection &amp;amp;&amp;amp; textDirection == "rtl")
{
&amp;nbsp; content += &lt;STRONG&gt;(content.length &amp;gt; 0 ? "\n" : "") +&lt;/STRONG&gt; value + " :" + fieldLabel + "\n";
}
else
{
&amp;nbsp; content += &lt;STRONG&gt;(content.length &amp;gt; 0 ? "\n" : "") +&lt;/STRONG&gt; fieldLabel + ": " + value + "\n";
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this is handy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:43:53 GMT</pubDate>
    <dc:creator>KennyHoran</dc:creator>
    <dc:date>2021-12-12T16:43:53Z</dc:date>
    <item>
      <title>3.1 ResultAttributes extra newline</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/3-1-resultattributes-extra-newline/m-p/645028#M19134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've been playing with the SearchWidget and noticed that when the InfoWindow scrolls there's extra whitespace at the bottom. I've tracked it down to an extra newline in supportClasses.ResultAttributes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The newline can be removed by truncating "content" after it's built, or by prepending the newline instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Truncate example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
// Line 76
&lt;STRONG&gt;if (content.length &amp;gt; 0 &amp;amp;&amp;amp; content.charAt(content.length - 1) == "\n")
&amp;nbsp; content = content.substr(0, -1);&lt;/STRONG&gt;
resultAttributes.content = content;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Prepend example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
// Line 154 - 161
if (textDirection &amp;amp;&amp;amp; textDirection == "rtl")
{
&amp;nbsp; content += &lt;STRONG&gt;(content.length &amp;gt; 0 ? "\n" : "") +&lt;/STRONG&gt; value + " :" + fieldLabel + "\n";
}
else
{
&amp;nbsp; content += &lt;STRONG&gt;(content.length &amp;gt; 0 ? "\n" : "") +&lt;/STRONG&gt; fieldLabel + ": " + value + "\n";
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this is handy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:43:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/3-1-resultattributes-extra-newline/m-p/645028#M19134</guid>
      <dc:creator>KennyHoran</dc:creator>
      <dc:date>2021-12-12T16:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: 3.1 ResultAttributes extra newline</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/3-1-resultattributes-extra-newline/m-p/645029#M19135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the suggestion.&amp;nbsp; Getting rid of that extra ending newline is a good idea.&amp;nbsp; We will do something similar to what you suggested. You can keep track of the progress at &lt;/SPAN&gt;&lt;A href="https://github.com/Esri/arcgis-viewer-flex/issues/84"&gt;https://github.com/Esri/arcgis-viewer-flex/issues/84&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 16:41:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/3-1-resultattributes-extra-newline/m-p/645029#M19135</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2013-03-14T16:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: 3.1 ResultAttributes extra newline</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/3-1-resultattributes-extra-newline/m-p/645030#M19136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just wanted to follow up and let you know that this has been fixed and will be part of the 3.2&amp;nbsp; release (see &lt;/SPAN&gt;&lt;A href="https://github.com/Esri/arcgis-viewer-flex/issues/84"&gt;GitHub Issue #84&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FYI - you can see the exact code change of our "commit" on GitHub:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcgis-viewer-flex/commit/11546fcf7d2d598fd44b2eece569fcf2d997c0a0"&gt;https://github.com/Esri/arcgis-viewer-flex/commit/11546fcf7d2d598fd44b2eece569fcf2d997c0a0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FYI: if you want to see what other viewer code changes made it into 3.2, look at the 58 closed and verified issues for 3.2:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcgis-viewer-flex/issues?labels=verified&amp;amp;milestone=1&amp;amp;state=closed"&gt;https://github.com/Esri/arcgis-viewer-flex/issues?labels=verified&amp;amp;milestone=1&amp;amp;state=closed&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Mar 2013 00:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/3-1-resultattributes-extra-newline/m-p/645030#M19136</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2013-03-16T00:22:10Z</dc:date>
    </item>
  </channel>
</rss>

