You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
When I dispose some elements, they will disappear and the other items below it shift up and it is fine. But the height of the pane won't be updated so there will be an empty space at the end of the pane in a folder.
The text was updated successfully, but these errors were encountered:
abolfazlshirazi
changed the title
Folder doesn't resize after disposing child/input in a folder
Folder doesn't resize after disposing child/input
May 3, 2020
I realized the followings solve the issue. However, it is just a temporary solution:
// rPane: The desired pane that you have
// ind: the index of the folder in the pane which you want to fix the height issue
var ind = 0;
var curH = rPane.controller.ucList_.items[ind].computeExpandedHeight_();
rPane.controller.ucList_.items[ind].view.folder_.expandedHeight_ = curH;
rPane.controller.ucList_.items[ind].folder.expandedHeight_ = curH;
rPane.refresh();
// You need to expand/collapse it once to make it work
rPane.controller.ucList_.items[ind].folder.expanded = false;
rPane.controller.ucList_.items[ind].folder.expanded = true;
Hi,
When I dispose some elements, they will disappear and the other items below it shift up and it is fine. But the height of the pane won't be updated so there will be an empty space at the end of the pane in a folder.
The text was updated successfully, but these errors were encountered: