Fix layout rounding. (#18667)

This commit is contained in:
Christian Gunderman
2026-02-10 04:53:49 +00:00
committed by GitHub
parent 92a5f725a1
commit bd2744031f
2 changed files with 4 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ export const MaxSizedBox: React.FC<MaxSizedBoxProps> = ({
const observer = new ResizeObserver((entries) => {
const entry = entries[0];
if (entry) {
setContentHeight(entry.contentRect.height);
setContentHeight(Math.round(entry.contentRect.height));
}
});
observer.observe(node);