updated dialog doc to reflect the default position

This commit is contained in:
Marcel Hellwig 2017-12-12 09:19:05 +01:00 committed by GitHub
parent f8e7427f75
commit 9ce8896bba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,11 +174,13 @@ impl Dialog {
}
/// Sets the horizontal position of the title in the dialog.
/// The default position is `HAlign::Center`
pub fn title_position(self, align: HAlign) -> Self {
self.with(|s| s.set_title_position(align))
}
/// Sets the horizontal position of the title in the dialog.
/// The default position is `HAlign::Center`
pub fn set_title_position(&mut self, align: HAlign) {
self.title_position = align;
}