x-ui-design 0.9.79 → 0.9.80

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.
@@ -144,7 +144,7 @@ export const usePopupPosition = ({
144
144
  newPlacement = newPlacement.replace('Right', 'Left') as Placement;
145
145
  } else {
146
146
  if (inBody) {
147
- if (window.innerWidth - (container.left + container.width) < popupRect.width && container.left < popupRect.width) {
147
+ if (window.innerWidth - (container.left + container.width) < popupRect.width && container.left + container.width < popupRect.width) {
148
148
  newPlacement = newPlacement.replace(/Left|Right/, '') as Placement;
149
149
  }
150
150
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-ui-design",
3
- "version": "0.9.79",
3
+ "version": "0.9.80",
4
4
  "license": "ISC",
5
5
  "author": "Gabriel Boyajyan",
6
6
  "main": "dist/index.js",