carbon-react 114.5.0 → 114.5.1

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.
@@ -72,8 +72,8 @@ const Dialog = ({
72
72
  midPointY = TOP_MARGIN;
73
73
  }
74
74
 
75
- if (midPointX < TOP_MARGIN) {
76
- midPointX = TOP_MARGIN;
75
+ if (midPointX < 0) {
76
+ midPointX = 0;
77
77
  }
78
78
 
79
79
  dialogRef.current.style.top = `${midPointY}px`;
@@ -99,8 +99,8 @@ const Dialog = ({
99
99
  midPointY = _dialog2.TOP_MARGIN;
100
100
  }
101
101
 
102
- if (midPointX < _dialog2.TOP_MARGIN) {
103
- midPointX = _dialog2.TOP_MARGIN;
102
+ if (midPointX < 0) {
103
+ midPointX = 0;
104
104
  }
105
105
 
106
106
  dialogRef.current.style.top = `${midPointY}px`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "114.5.0",
3
+ "version": "114.5.1",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",