Select to view content in your preferred language

Have map frame shift when sidebar is expanded

1170
7
10-22-2024 03:36 PM
Brian_McLeer
Frequent Contributor

I added a Sidebar widget that contains a Table widget within it. Upon opening, I have it collapsed by default. The issue I am having is when expanding, the map widget does not seem to adjust to the change. This causes certain elements like the scalebar and map credits to overlay the table. I adjusted settings in both the sidebar and map widget style for height from a defined percentage to stretch, but the issue persisted. Any tips? 

Collapsed:

Brian_McLeer_0-1729636451992.png

Expanded:

Brian_McLeer_2-1729636595339.png

 

 

Brian
0 Kudos
7 Replies
ShengdiZhang
Esri Regular Contributor

Hi @Brian_McLeer ,

Is the Overlay turned on in the sidebar widget settings?

ShengdiZhang_0-1729647852569.png

Regards,

Shengdi

Brian_McLeer
Frequent Contributor

Hi @ShengdiZhang 

I did just turn on the overlay, and now the table as expected overlays the map, however, it overlays the scale bar and map credits. In Web AppBuilder, there is a behavior to adjust the size of the map frame to be reactive to the size of the sidebar frame. While overlaying the map is fine, when you select a feature and zoom to it on the map the table cuts off part of the feature because the map widget frame is not adjusting to the sidebar frame. You can see an example in my third image below. 

Collapsed:

Brian_McLeer_0-1729694015620.png

 

Expanded:

Brian_McLeer_1-1729694040341.png

Example of a feature being cut off by sidebar pane. 

Brian_McLeer_2-1729694168774.png

 

 

Brian
0 Kudos
Brian_McLeer
Frequent Contributor

@ShengdiZhang I should include that the Sidebar is nested outside of the Map widget within the same level of the body.

Brian_McLeer_0-1729695323677.png

 

Brian
0 Kudos
ShengdiZhang
Esri Regular Contributor

Hi Brian, it should work if you move the map widget to another panel in the sidebar widget. You can use the Foldable template with a similar layout to add a page as a reference.

ShengdiZhang_1-1729733680769.png

 

ShengdiZhang_0-1729733645475.png

Shengdi

Brian_McLeer
Frequent Contributor

Hi @ShengdiZhang ,

I configured it similarly to the way you have it above but I am still getting the same behavior. The sidebars, fixed panels, tables, and maps are set to stretch for width and height. Perhaps there is a setting I am missing? 

Brian_McLeer_4-1730213261350.png

 

Collapsed:

Brian_McLeer_2-1730212768795.png

 

Expanded:

 

Brian_McLeer_3-1730212793648.png

 

Brian
0 Kudos
Brian_McLeer
Frequent Contributor

@ShengdiZhang I just loaded the foldable template, and out of the box, it is showing the same behavior of not collapsing the map to show the credits when the table is expanded. I added a scale bar as well. 

Collapsed:

Brian_McLeer_5-1730213777626.png

 

Expanded:

Brian_McLeer_6-1730213798016.png

 

Brian
0 Kudos
Brian_McLeer
Frequent Contributor

@ShengdiZhang I think I resolved the issue, I used your workflow above but turned Overlay off on the Sidebar widget. Thanks for your help with this! 

Brian
0 Kudos