Skip to content

Commit

Permalink
comment out the set_size line causing the panic for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamby777 committed Dec 6, 2023
1 parent 2ac29b8 commit 8b7a90c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pets-lib/src/dialogue/dbox/dchoice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,11 @@ impl IContainer for DChoice {

let label = self.node.get_node_as::<RichTextLabel>("Label");
let size = Vector2 {
// x: label.get_size().x,
// y: self.node.get_size().y,
x: 500.0,
y: 500.0,
x: label.get_size().x,
y: self.node.get_size().y,
};

self.node.set_size(size);
// self.node.set_size(size);

let rect = Rect2::new(Vector2::ZERO, size);
self.node.fit_child_in_rect(label.upcast(), rect);
Expand Down

0 comments on commit 8b7a90c

Please sign in to comment.