My expand widget height gets too big and looks really bad in responsive mode. For example, when I add a print widget to the expander and the browser width is resized the expanded content increases the height and snaps to the edge of the browser. This makes it difficult to see and even use the print export controls. I am looking for a way to keep the size of the expanded content equal size in either desktop or mobile. Is there CSS I can add to override this? Thanks!
The expanded content here has good dimensions when not in responsive mode
Responsive mode
Solved! Go to Solution.
You can define the expand.mode as "floating" to keep the expand widget from changing based on the browser width.
Expand | ArcGIS API for JavaScript 4.17
const expand = new Expand({
content: widget,
mode: "floating"
});
You can define the expand.mode as "floating" to keep the expand widget from changing based on the browser width.
Expand | ArcGIS API for JavaScript 4.17
const expand = new Expand({
content: widget,
mode: "floating"
});
Exactly what I needed. Thanks!