Full disclosure: I've developed a few custom widgets now and am having fun with it but I have not touched any CSS in the process. So I've looked here: CSS framework—ArcGIS Web AppBuilder (Developer Edition) | ArcGIS for Developers and here: Make widgets user-friendly—ArcGIS Web AppBuilder (Developer Edition) | ArcGIS for Developers and here: Web AppBuilder Custom Widget | geodev-hackerlabs but no answer yet. -- Anyone have some better WAB related tutorial up their sleeve?
I have a wonderful WAB custom widget that has only one issue. The scrollbar in a search box is super narrow and unusable.
I've plowed through the mostly indecipherable CSS in apps\<999>\jimu.js\css searching for references to scrollbar. All I found was in jimu.css ...
<SPAN class="selector token">::-webkit-scrollbar</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="property token">border-radius</SPAN><SPAN class="punctuation token">:</SPAN> 3px<SPAN class="punctuation token">;</SPAN>
<SPAN class="comment token">/* width was 6px changed to 10px */</SPAN>
<SPAN class="property token">width</SPAN><SPAN class="punctuation token">:</SPAN> 6px<SPAN class="punctuation token">;</SPAN>
<SPAN class="property token">background-color</SPAN><SPAN class="punctuation token">:</SPAN> #EEEEEE<SPAN class="punctuation token">;</SPAN>
<SPAN class="property token">height</SPAN><SPAN class="punctuation token">:</SPAN> 6px<SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>when I made the above change, that has the desired effect. But is that the way to do it? How do I reference this same element in my custom widget style.css? Copying the above in there didn't work.
And why is it that as soon as I click on the scrollbar, it disappears. You can scroll through the records using either
and
or the mouse wheel but not by clicking/holding down scrollbar.Is this search widget behavior and controlled through parameters there, or some event handler, or CSS? Thanks.