Skip to content

Commit

Permalink
Update modal.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
wiiznokes committed Jul 31, 2023
1 parent b18ec73 commit 197dc03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/native/modal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,14 @@ where
}

/// Sets the content alignment for the horizontal axis of the [`Modal`](Modal).
#[must_use]
pub fn align_x(mut self, alignment: alignment::Horizontal) -> Self {
self.horizontal_alignment = alignment;
self
}

/// Sets the content alignment for the vertical axis of the [`Modal`](Modal).
#[must_use]
pub fn align_y(mut self, alignment: alignment::Vertical) -> Self {
self.vertical_alignment = alignment;
self
Expand Down

0 comments on commit 197dc03

Please sign in to comment.