remove ui.vertical_centered
This commit is contained in:
parent
aad0391fef
commit
8cbf90442b
2 changed files with 1 additions and 6 deletions
|
@ -704,11 +704,6 @@ impl Ui {
|
||||||
self.inner_layout(Layout::vertical(Align::Min), initial_size, add_contents)
|
self.inner_layout(Layout::vertical(Align::Min), initial_size, add_contents)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn vertical_centered<R>(&mut self, add_contents: impl FnOnce(&mut Ui) -> R) -> (R, Rect) {
|
|
||||||
let initial_size = vec2(0.0, self.available().height());
|
|
||||||
self.inner_layout(Layout::vertical(Align::Center), initial_size, add_contents)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn inner_layout<R>(
|
pub fn inner_layout<R>(
|
||||||
&mut self,
|
&mut self,
|
||||||
layout: Layout,
|
layout: Layout,
|
||||||
|
|
|
@ -188,7 +188,7 @@ fn color_slider_2d(
|
||||||
}
|
}
|
||||||
|
|
||||||
fn color_picker_hsvag_2d(ui: &mut Ui, hsva: &mut HsvaGamma) {
|
fn color_picker_hsvag_2d(ui: &mut Ui, hsva: &mut HsvaGamma) {
|
||||||
ui.vertical_centered(|ui| {
|
ui.vertical(|ui| {
|
||||||
let current_color_size = vec2(
|
let current_color_size = vec2(
|
||||||
ui.style().spacing.slider_width,
|
ui.style().spacing.slider_width,
|
||||||
ui.style().spacing.interact_size.y * 2.0,
|
ui.style().spacing.interact_size.y * 2.0,
|
||||||
|
|
Loading…
Reference in a new issue