publ-echo 0.0.54 → 0.0.55
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.
|
@@ -261,14 +261,13 @@ var GridItem = function (_a) {
|
|
|
261
261
|
* @param {Object} callbackData an object with node and size information
|
|
262
262
|
*/
|
|
263
263
|
var onResizeStart = function (e, callbackData) {
|
|
264
|
-
var _a;
|
|
265
264
|
var isOverflowingVertically = scrollHeight > clientHeight;
|
|
266
265
|
var isHandleVertical = callbackData.handle.includes('n') || callbackData.handle.includes('s');
|
|
267
266
|
// const isOverflowingHorizontally = scrollWidth > clientWidth;
|
|
268
|
-
if (isOverflowingVertically && isHandleVertical) {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
}
|
|
267
|
+
// if (isOverflowingVertically && isHandleVertical) {
|
|
268
|
+
// elementRef.current?.classList.add(`resize-notallowed-${callbackData.handle}`)
|
|
269
|
+
// return;
|
|
270
|
+
// }
|
|
272
271
|
onResizeHandler(e, callbackData, "onResizeStart");
|
|
273
272
|
shouldAutoShrink.current.initialHeight = height;
|
|
274
273
|
};
|
|
@@ -279,6 +278,7 @@ var GridItem = function (_a) {
|
|
|
279
278
|
*/
|
|
280
279
|
var onResize = function (e, callbackData) {
|
|
281
280
|
setIsResizing(true);
|
|
281
|
+
console.log('textContentHeight in onresize', textContentHeight);
|
|
282
282
|
var _a = getDirectionOfMouseEvent(e), dirX = _a.dirX, dirY = _a.dirY;
|
|
283
283
|
var shouldBlock = shouldBlockResize({
|
|
284
284
|
handle: callbackData.handle,
|