Explorar o código

view port no scroll

Xiaopeng Zhang hai 6 meses
pai
achega
49aaa6c5f6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      front/src/App2.js

+ 1 - 1
front/src/App2.js

@@ -834,7 +834,7 @@ const MUI_X_PRODUCTS = [
                      </Select>
                    </FormControl> 
                    <Stack spacing={1}>
-                    <RichTreeView sx={{overflow: "scroll", maxHeight: "48vh"}}
+                    <RichTreeView sx={{overflow: "scroll", maxHeight: `calc(100vh - 540px)`}}
                      onItemSelectionToggle={handleItemSelectionToggleDes}
                      slots={{ item: CustomTreeItem }}