Browse Source

Fix issue with very small components

pull/6200/head
mohamedsalem401 2 years ago
parent
commit
c7cd3ffd4a
  1. 2
      packages/core/src/utils/sorter/PlaceholderClass.ts

2
packages/core/src/utils/sorter/PlaceholderClass.ts

@ -95,7 +95,7 @@ export class PlaceholderClass extends View {
const borderWidth = borderLeftWidth + borderRightWidth;
top = elTop + paddingTop + borderTopWidth;
left = elLeft + paddingLeft + borderLeftWidth;
width = elWidth - paddingLeft * 2 - borderWidth + 'px';
width = Math.max(elWidth - paddingLeft * 2 - borderWidth, 1) + 'px';
height = 'auto';
} else {
if (!dir) {

Loading…
Cancel
Save