<?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: Width issues with esri/dijit/ColorPicker in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/width-issues-with-esri-dijit-colorpicker/m-p/447119#M41301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, that's one way to do it. I explicitly assigned the box-sizing to content-box for my app. Thankfully there's more than one way to skin that cat. I just wanted the information out there in case others ran into the same issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;.esriColorPicker { box-sizing: content-box; }&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2015 14:02:24 GMT</pubDate>
    <dc:creator>KenDoman</dc:creator>
    <dc:date>2015-05-12T14:02:24Z</dc:date>
    <item>
      <title>Width issues with esri/dijit/ColorPicker</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/width-issues-with-esri-dijit-colorpicker/m-p/447117#M41299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've put this on here, because I have no idea where else to file bug reports or issues with esri dijits. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've incorporated the &lt;A href="http://https//developers.arcgis.com/javascript/jsapi/colorpicker-amd.html"&gt;esri/dijit/ColorPicker&lt;/A&gt; from the ArcGIS JavaScript API (v. 3.13). When viewing the application, I noticed a weird issue with the size/border of the ColorPicker.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="esri-dijit-colorPicker-box-sizing-border-box.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/98928_esri-dijit-colorPicker-box-sizing-border-box.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I attempted to recreate the issue using JSFiddle (&lt;A href="https://jsfiddle.net/raykendo/L5y4r0mL/" title="https://jsfiddle.net/raykendo/L5y4r0mL/"&gt;ESRI - dijit - ColorPicker - JSFiddle))&lt;/A&gt;​. The funny thing was, when I viewed the results, everything looked fine, as you can see when you follow the link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I looked back through my application, trying to find out what the difference was. Digging into the CSS, I found that the &lt;A href="http://https//developer.mozilla.org/en-US/docs/Web/CSS/box-sizing"&gt;CSS box-sizing&lt;/A&gt; property for all items in my application was set to border-box, while without it, the css box-sizing defaults to content-box. When I applied the box-sizing of border-box to the .esriColorPicker class, I was able to recreate the issue. &lt;A href="http://jsfiddle.net/raykendo/f3sao4t1/" title="http://jsfiddle.net/raykendo/f3sao4t1/"&gt;ESRI - dijit - ColorPicker (with error) - JSFiddle&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to keep the width of the ColorPicker dijit from messing up, perhaps they should assign a box-sizing property to its style.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like I said, I didn't know where else to post this information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 20:48:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/width-issues-with-esri-dijit-colorpicker/m-p/447117#M41299</guid>
      <dc:creator>KenDoman</dc:creator>
      <dc:date>2015-05-11T20:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Width issues with esri/dijit/ColorPicker</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/width-issues-with-esri-dijit-colorpicker/m-p/447118#M41300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;The widget was styled using &lt;EM&gt;box-sizing&lt;/EM&gt;’s default (&lt;EM&gt;content-box&lt;/EM&gt;), so this is why the layout gets messed up when it's changed to &lt;EM&gt;border-box&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;Workaround&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="s1"&gt;&lt;EM&gt;.esriColorPicker { &lt;/EM&gt;&lt;/SPAN&gt;
&lt;SPAN class="s1"&gt;&lt;EM&gt;&amp;nbsp; box-sizing: border-box; &lt;/EM&gt;&lt;/SPAN&gt;


&lt;SPAN class="s1"&gt;&lt;EM&gt;&amp;nbsp; /* original width 195px + 15px left padding + 2px left border + 15px right padding + 2px right border &lt;/EM&gt;&lt;EM&gt;*/&lt;/EM&gt;&lt;/SPAN&gt;
&lt;SPAN class="s1"&gt;&lt;EM&gt;&amp;nbsp; &lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;width: 229px; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;
&lt;SPAN class="s1"&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsfiddle.net/f3sao4t1/3/" rel="nofollow noopener noreferrer" target="_blank"&gt;Updated fiddle&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:58:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/width-issues-with-esri-dijit-colorpicker/m-p/447118#M41300</guid>
      <dc:creator>Juan_CarlosFranco</dc:creator>
      <dc:date>2021-12-11T19:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Width issues with esri/dijit/ColorPicker</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/width-issues-with-esri-dijit-colorpicker/m-p/447119#M41301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, that's one way to do it. I explicitly assigned the box-sizing to content-box for my app. Thankfully there's more than one way to skin that cat. I just wanted the information out there in case others ran into the same issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;.esriColorPicker { box-sizing: content-box; }&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 14:02:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/width-issues-with-esri-dijit-colorpicker/m-p/447119#M41301</guid>
      <dc:creator>KenDoman</dc:creator>
      <dc:date>2015-05-12T14:02:24Z</dc:date>
    </item>
  </channel>
</rss>

