Parcourir la source

view port no scroll

Xiaopeng Zhang il y a 6 mois
Parent
commit
49aaa6c5f6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 }}