Added a fix to keep the facet height after performing various operations.
@@ -50,6 +50,7 @@ class ListFacet extends Facet {
this._data = null;
+ this._initialHeightSet = false;
this._initializeUI();
this._update();
};
@@ -401,6 +402,7 @@ class ListFacet extends Facet {
this._renderBodyControls();
this._elmts.bodyInnerDiv[0].scrollTop = scrollTop;
+ if (!this._initialHeightSet) {
let innerList = this._elmts.bodyInnerDiv[0];
let innerHeight = innerList.clientHeight;
let defaultMaxHeight = 17 * 13;
@@ -410,6 +412,8 @@ class ListFacet extends Facet {
} else {
this._elmts.bodyDiv.height((innerHeight + 1) + 'px');
}
+ this._initialHeightSet = true;
+ }
var getChoice = function(elmt) {
var index = parseInt(elmt.attr("choiceIndex"),10);
