Bug fix: fix horizontal layouts inside infinitely wide Ui:s.
This commit is contained in:
parent
d865852d24
commit
f11f9bd1fd
1 changed files with 1 additions and 1 deletions
|
@ -1511,7 +1511,7 @@ impl Ui {
|
|||
add_contents: Box<dyn FnOnce(&mut Ui) -> R + 'c>,
|
||||
) -> InnerResponse<R> {
|
||||
let initial_size = vec2(
|
||||
self.available_size_before_wrap_finite().x,
|
||||
self.available_size_before_wrap().x,
|
||||
self.spacing().interact_size.y, // Assume there will be something interactive on the horizontal layout
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue