RelativeModal
class RelativeModal(view: View, relativeTo: View, layout: ConstraintDslContext.(Bounds, Rectangle) -> Unit = { modal, _ -> modal.center eq parent.center }) : ModalManager.ModalType(source)
A Modal that is positioned relative to another View and the Display.
RelativeModal(view, relativeTo = button) { modal, button ->
modal.top eq bottom.bottom + 10
modal.centerX eq button.center.x
}
Content copied to clipboard
Parameters
view
to display as a Modal
relativeTo
another View (represented in the layout as the second parameter
layout
controls the modal's positioning within its parent