Fix modelling regressions and reconcile WIP UI work
This commit is contained in:
1 parent
49bd89de13
commit
d6cdec40da
67 files changed
+1793
-260
No files matched your search
@@ -245,6 +245,15 @@ impl Harness {
|
||||
}
|
||||
|
||||
pub fn call(&mut self, method: &str, params: Value) -> Value {
|
||||
if method == "ui.resize"
|
||||
&& let (Some(w), Some(h)) = (params["width"].as_f64(), params["height"].as_f64())
|
||||
&& w.is_finite()
|
||||
&& h.is_finite()
|
||||
&& w > 0.0
|
||||
&& h > 0.0
|
||||
{
|
||||
self.size = egui::vec2(w as f32, h as f32);
|
||||
}
|
||||
let (req, _rx) = ControlRequest::new(method, params);
|
||||
let out = match handle(&mut self.app, &self.ctx, &req) {
|
||||
Outcome::Done(v) => v,
|
||||
|
||||
Reference in new issue
Block a user