@budibase/bbui 2.4.8-alpha.1 → 2.4.8-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/bbui",
3
3
  "description": "A UI solution used in the different Budibase projects.",
4
- "version": "2.4.8-alpha.1",
4
+ "version": "2.4.8-alpha.2",
5
5
  "license": "MPL-2.0",
6
6
  "svelte": "src/index.js",
7
7
  "module": "dist/bbui.es.js",
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@adobe/spectrum-css-workflow-icons": "1.2.1",
41
- "@budibase/string-templates": "2.4.8-alpha.1",
41
+ "@budibase/string-templates": "2.4.8-alpha.2",
42
42
  "@spectrum-css/accordion": "3.0.24",
43
43
  "@spectrum-css/actionbutton": "1.0.1",
44
44
  "@spectrum-css/actiongroup": "1.0.1",
@@ -89,5 +89,5 @@
89
89
  "resolutions": {
90
90
  "loader-utils": "1.4.1"
91
91
  },
92
- "gitHead": "e09a5d2aa5fb497cd237b890701687699d84a097"
92
+ "gitHead": "9cc46334a372ecef7f7128d52b1dd7353940522c"
93
93
  }
@@ -31,6 +31,7 @@ export default function positionDropdown(element, opts) {
31
31
  styles.top = anchorBounds.top
32
32
  } else if (window.innerHeight - anchorBounds.bottom < 100) {
33
33
  styles.top = anchorBounds.top - elementBounds.height - offset
34
+ styles.maxHeight = 240
34
35
  } else {
35
36
  styles.top = anchorBounds.bottom + offset
36
37
  styles.maxHeight = window.innerHeight - anchorBounds.bottom - 20