test fix issue
This commit is contained in:
parent
4c97cae249
commit
adefc5f900
@ -56,7 +56,14 @@ cfg_if::cfg_if! {
|
|||||||
.start(
|
.start(
|
||||||
canvas,
|
canvas,
|
||||||
eframe::WebOptions::default(),
|
eframe::WebOptions::default(),
|
||||||
Box::new(|cc| Ok(Box::new(math_app::MathApp::new(cc)))),
|
Box::new(|cc| {
|
||||||
|
// Limit tessellation options to prevent runaway allocation
|
||||||
|
cc.egui_ctx.tessellation_options_mut(|tess_options| {
|
||||||
|
tess_options.feathering = false;
|
||||||
|
tess_options.feathering_size_in_pixels = 1.0;
|
||||||
|
});
|
||||||
|
Ok(Box::new(math_app::MathApp::new(cc)))
|
||||||
|
}),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|||||||
@ -56,9 +56,10 @@
|
|||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0%;
|
top: 0;
|
||||||
left: 50%;
|
left: 0;
|
||||||
transform: translate(-50%, 0%);
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user