提交 38a2154d 编写于 作者: I isidor

CompositeBar: Do not layout if not visible. Otherwise the size measurment would be computed wrongly

上级 c107b086
......@@ -424,6 +424,11 @@ export class CompositeBar implements ICompositeBar {
public layout(dimension: Dimension): void {
this.dimension = dimension;
if (dimension.height === 0 || dimension.width === 0) {
// Do not layout if not visible. Otherwise the size measurment would be computed wrongly
return;
}
if (this.compositeSizeInBar.size === 0) {
// Compute size of each composite by getting the size from the css renderer
// Size is later used for overflow computation
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册