How do I get/set Layerswipe width/height at runtime?

210
0
01-08-2019 04:13 AM
AndyClark2
New Contributor II

I have a project with a LayerSwipe (Javascript API) in it. We allow a toggle between the modes/type of LayerSwipe which starts as a horizontal/vertical (viewport orientation dependant) and toggles to a scope type, but when we toggle back to horizontal/vertical, the slider reverts to the left/top. Does anyone know of attributes methods to get the position of the slider pre-toggle and to set the width/height when toggled back (or at least set it to a default when toggled back)?

0 Kudos
0 Replies