Decrease width of LayerList widget

1897
2
11-21-2016 08:39 AM
AndrewL
Occasional Contributor II

Hello. I would like to decrease the width of the LayerList widget. I am using WAB Developer's 2.1. I have looked at the LayerList API reference but did not find anything about width. LayerList | API Reference | ArcGIS API for JavaScript 3.18 

I have attached a screenshot. Basically I would like to reduce the amount of white space between the layer names and the 3 dots. Thanks!

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Andrew,

  Here is a thread where I provide a solution for that in the launchpad theme but it will work for the foldable theme as well:

https://community.esri.com/thread/181865-how-to-change-wab-widget-window-size 

AndrewL
Occasional Contributor II

Thanks Robert. I tried the css way, but that didn't seem to do anything. I obtained the panel id from DevTools and added the code to my css file:

#widgets_LayerList_Widget_17_panel{
width: 50px;
}

I'll take a look at the startup function code though to see if that works.

0 Kudos