You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
try clear next item size when resizing so there is always one unsized item
This commit is contained in:
@@ -64,6 +64,14 @@ export class Sizer {
|
||||
}
|
||||
}
|
||||
|
||||
clearItemSize(item) {
|
||||
if (this.vertical) {
|
||||
item.style.height = null;
|
||||
} else {
|
||||
item.style.width = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@param {MouseEvent} event the mouse event
|
||||
@return {number} the distance between the cursor and the edge of the container,
|
||||
|
||||
Reference in New Issue
Block a user