calcite-dialog
- add method to "reset" it back to its original position relative to reference before dragging
#11320
Labels
0 - new
New issues that need assignment.
ArcGIS Web Analysis
Issues logged by ArcGIS Web Analysis team members
enhancement
Issues tied to a new feature or request.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
needs triage
Planning workflow - pending design/dev review.
Check existing issues
Description
We have some ui interactions where we want to reposition the draggable dialog, basically removing the
transform
that is applied in the shadow root of the component. There isn't a semantic way to do this, and to workaround we basically toggle thedragEnabled
property. Doing this resets the dialog bad to its original position relative to its reference element.This comes up because the reference element is also movable, and it leads to some unexpected looking ui when the dialog is re-opened. It might be nice to have a semantic way to reset the resize as well.
Acceptance Criteria
A semantic way to remove the transfrom applied from dragging and reset the dialog relative to its reference. It would go back to honoring the css x / y custom properties.
Relevant Info
No response
Which Component
calcite-dialog
Example Use Case
await dialogElement.resetTransform()
or something like thatPriority impact
impact - p3 - not time sensitive
Calcite package
Esri team
ArcGIS Web Analysis
The text was updated successfully, but these errors were encountered: