<?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>Question Re: Select List max-width and width not working in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/select-list-max-width-and-width-not-working/qaa-p/12768336#M4793333</link>
    <description>&lt;P&gt;Instead of manipulating the internal max-width* of the picker, set the `wrapItemsText` property of the control to true. From the &lt;A href="https://ui5.sap.com/#/api/sap.m.Select%23controlProperties"&gt;sap.m.Select API reference:&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;  &amp;gt; "Determines whether the text in the items wraps on multiple lines when the available width is not enough. When the text is truncated (wrapItemsText property is set to false), the max width of the SelectList is 600px. When wrapItemsText is set to true, SelectList takes all of the available width."&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Select xmlns="sap.m" wrapItemsText="true"&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;___&lt;/P&gt;&lt;P&gt;* Please note that&lt;EM&gt; "[..] &lt;STRONG&gt;HTML and CSS generated by SAPUI5 isn't part of the public API&lt;/STRONG&gt; and may change in patch and minor releases. If you decide to override styles, you need to test and update your modifications each time SAPUI5 is updated. [...] &lt;STRONG&gt;SAP Fiori launchpad apps shouldn't override styles.&lt;/STRONG&gt;"&lt;/EM&gt; (Source: &lt;A href="https://ui5.sap.com/#/topic/91f087396f4d1014b6dd926db0e91070"&gt;Compatibility Rules - SAPUI5&lt;/A&gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2023 12:18:28 GMT</pubDate>
    <dc:creator>boghyon</dc:creator>
    <dc:date>2023-10-24T12:18:28Z</dc:date>
    <item>
      <title>Select List max-width and width not working</title>
      <link>https://community.sap.com/t5/technology-q-a/select-list-max-width-and-width-not-working/qaq-p/12768333</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
  &lt;P&gt;I'm currently having trouble with changing the width of the list that shows when opening a select field. The select has a width of 100% and spans the entire site, just as I want. But when I open the select and the list for it shows all items have a maximum width of 600px.&lt;/P&gt;
  &lt;P&gt;Changing the max-width or width properties does nothing to change the width of this list and it always stays at a width of 600px.&lt;/P&gt;
  &lt;P&gt;I'd be grateful if any of you have insight into why the list of the select behaves in such a way and how I can have the list have the same width as the select field.&lt;/P&gt;
  &lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 11:12:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/select-list-max-width-and-width-not-working/qaq-p/12768333</guid>
      <dc:creator>davidsigleinit</dc:creator>
      <dc:date>2023-10-24T11:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select List max-width and width not working</title>
      <link>https://community.sap.com/t5/technology-q-a/select-list-max-width-and-width-not-working/qaa-p/12768334#M4793331</link>
      <description>&lt;P&gt;Found it myself after some more searching and it was this class that needs adjusting:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2223496-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 11:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/select-list-max-width-and-width-not-working/qaa-p/12768334#M4793331</guid>
      <dc:creator>davidsigleinit</dc:creator>
      <dc:date>2023-10-24T11:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select List max-width and width not working</title>
      <link>https://community.sap.com/t5/technology-q-a/select-list-max-width-and-width-not-working/qaa-p/12768335#M4793332</link>
      <description>&lt;P&gt;Please note that &lt;EM&gt;"[..] &lt;STRONG&gt;HTML and CSS generated by SAPUI5 isn't part of the public API&lt;/STRONG&gt; and may change in patch and minor releases. If you decide to override styles, you need to test and update your modifications each time SAPUI5 is updated. [...] &lt;STRONG&gt;SAP Fiori launchpad apps shouldn't override styles.&lt;/STRONG&gt;"&lt;/EM&gt; (Source: &lt;A href="https://ui5.sap.com/#/topic/91f087396f4d1014b6dd926db0e91070"&gt;Compatibility Rules - SAPUI5&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 12:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/select-list-max-width-and-width-not-working/qaa-p/12768335#M4793332</guid>
      <dc:creator>boghyon</dc:creator>
      <dc:date>2023-10-24T12:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Select List max-width and width not working</title>
      <link>https://community.sap.com/t5/technology-q-a/select-list-max-width-and-width-not-working/qaa-p/12768336#M4793333</link>
      <description>&lt;P&gt;Instead of manipulating the internal max-width* of the picker, set the `wrapItemsText` property of the control to true. From the &lt;A href="https://ui5.sap.com/#/api/sap.m.Select%23controlProperties"&gt;sap.m.Select API reference:&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;  &amp;gt; "Determines whether the text in the items wraps on multiple lines when the available width is not enough. When the text is truncated (wrapItemsText property is set to false), the max width of the SelectList is 600px. When wrapItemsText is set to true, SelectList takes all of the available width."&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Select xmlns="sap.m" wrapItemsText="true"&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;___&lt;/P&gt;&lt;P&gt;* Please note that&lt;EM&gt; "[..] &lt;STRONG&gt;HTML and CSS generated by SAPUI5 isn't part of the public API&lt;/STRONG&gt; and may change in patch and minor releases. If you decide to override styles, you need to test and update your modifications each time SAPUI5 is updated. [...] &lt;STRONG&gt;SAP Fiori launchpad apps shouldn't override styles.&lt;/STRONG&gt;"&lt;/EM&gt; (Source: &lt;A href="https://ui5.sap.com/#/topic/91f087396f4d1014b6dd926db0e91070"&gt;Compatibility Rules - SAPUI5&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 12:18:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/select-list-max-width-and-width-not-working/qaa-p/12768336#M4793333</guid>
      <dc:creator>boghyon</dc:creator>
      <dc:date>2023-10-24T12:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select List max-width and width not working</title>
      <link>https://community.sap.com/t5/technology-q-a/select-list-max-width-and-width-not-working/qaa-p/12768337#M4793334</link>
      <description>&lt;P&gt;Thanks for taking the time to reply. Unfortunately your solution does not work for me. Either because I'm on an older version of SAPUI5 (1.71) or because of other reasons, like conflicting CSS. Either way your answer is probably the one that is more correct. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 12:35:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/select-list-max-width-and-width-not-working/qaa-p/12768337#M4793334</guid>
      <dc:creator>davidsigleinit</dc:creator>
      <dc:date>2023-10-24T12:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select List max-width and width not working</title>
      <link>https://community.sap.com/t5/technology-q-a/select-list-max-width-and-width-not-working/qaa-p/12768338#M4793335</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;davidsigleinit&lt;/SPAN&gt; You can find the sap.m.Select sample with wrapItemsText="true" at &lt;A href="https://sdk.openui5.org/entity/sap.m.Select/sample/sap.m.sample.SelectWithWrappedItemText/code" target="test_blank"&gt;https://sdk.openui5.org/entity/sap.m.Select/sample/sap.m.sample.SelectWithWrappedItemText/code&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 13:20:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/select-list-max-width-and-width-not-working/qaa-p/12768338#M4793335</guid>
      <dc:creator>boghyon</dc:creator>
      <dc:date>2023-10-24T13:20:51Z</dc:date>
    </item>
  </channel>
</rss>

