test fix issue
This commit is contained in:
parent
4c97cae249
commit
adefc5f900
@ -56,7 +56,14 @@ cfg_if::cfg_if! {
|
||||
.start(
|
||||
canvas,
|
||||
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
|
||||
}
|
||||
|
||||
@ -56,9 +56,10 @@
|
||||
margin-left: auto;
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, 0%);
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user