@movable/studio-framework 3.4.2 → 3.5.0-canary.0

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/dist/index.es.js CHANGED
@@ -1612,6 +1612,7 @@ class StudioTool extends React.Component {
1612
1612
 
1613
1613
  function trimTextOverflow(element) {
1614
1614
  const parentElement = element.parentElement;
1615
+ parentElement.style.overflowWrap = 'break-word';
1615
1616
  const parentBox = parentElement.getBoundingClientRect(); // It fits already; no need to resize.
1616
1617
 
1617
1618
  if (!overflowsParent$1(element, parentBox)) {
@@ -1681,8 +1682,7 @@ function findOverlappingElement(element, parentBox) {
1681
1682
 
1682
1683
  function overflowsParent$1(element, parentBox) {
1683
1684
  const selfBox = element.getBoundingClientRect();
1684
- const isOutside = !(selfBox.left >= parentBox.left && selfBox.right <= parentBox.right && selfBox.bottom <= parentBox.bottom && element.scrollHeight <= parentBox.height && element.scrollWidth <= parentBox.width);
1685
- return isOutside;
1685
+ return selfBox.bottom > parentBox.bottom;
1686
1686
  }
1687
1687
 
1688
1688
  const {