Select to view content in your preferred language

How to set the sidebar widget to be adapted of different size of screen ?

975
13
Jump to solution
06-30-2025 07:03 AM
JasonBOCQUET
Frequent Contributor

Hi community,

I have an issue with the sidebar widget. It seems to not be able to auto-sized depending of the screen resolution of the user.

I'll explain. I set the width to 30% and the height to 26.5% (I need to set this height because I insert a layer list widget on the sidebar widget with 3 layers). Then I set the button to reduce the panel to be in center of the list widget.

 

My List widget is setted to be auto sized on lentgh and width.

 

Her is the rendering on my first screen : 

JasonBOCQUET_0-1751291860170.png

It's very nice.

 

And here is the screen on my second screen (more larger) :

JasonBOCQUET_1-1751291885501.png

 

Holy S. my text jump and the reduce button moved. WHY ???

 

What I have to do to make this coherent when the screen size changed ?

 

Thanks for your help.

 

Here is the screen of my settings :

 

JasonBOCQUET_3-1751292126476.pngJasonBOCQUET_4-1751292139383.pngJasonBOCQUET_5-1751292148992.pngJasonBOCQUET_6-1751292155266.png

 

 

 

13 Replies
ZhenZhang22
Esri Alum

The sidebar uses % for its width, so when the window gets too small, the sidebar becomes too narrow to show properly. If you set the width in px instead, it stays fixed and the cursor button won’t disappear.

Best,
Zhen

0 Kudos
JasonBOCQUET
Frequent Contributor

Ok, so if I understand correctly : heigth and width have to be set with px instead of % to be more adaptative of the resolution of the user's screen ?

 

0 Kudos
ZhenZhang22
Esri Alum

There’s no one right choice — % and px both have their place. For what you need, px is a better fit. Check out the doc below for more style tips.

https://doc.arcgis.com/en/experience-builder/latest/configure-widgets/style-settings.htm

 

JasonBOCQUET
Frequent Contributor

Thanks for your replies, it helped me very well.

0 Kudos