@progress/kendo-charts 2.8.0-develop.5 → 2.8.1-develop.1

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.
@@ -158,6 +158,9 @@ class Legend extends ChartElement {
158
158
 
159
159
  if (this.hasTitle()) {
160
160
  this.title.reflow(new Box(this.container.box.x1, this.title.box.y1, this.container.box.x2, this.title.box.y2));
161
+ if (this.title.box.width() > this.itemsContainer.box.width()) {
162
+ this.itemsContainer.reflow(new Box(this.container.box.x1, this.itemsContainer.box.y1, this.container.box.x2, this.itemsContainer.box.y2));
163
+ }
161
164
  }
162
165
  }
163
166
 
@@ -158,6 +158,9 @@ class Legend extends ChartElement {
158
158
 
159
159
  if (this.hasTitle()) {
160
160
  this.title.reflow(new Box(this.container.box.x1, this.title.box.y1, this.container.box.x2, this.title.box.y2));
161
+ if (this.title.box.width() > this.itemsContainer.box.width()) {
162
+ this.itemsContainer.reflow(new Box(this.container.box.x1, this.itemsContainer.box.y1, this.container.box.x2, this.itemsContainer.box.y2));
163
+ }
161
164
  }
162
165
  }
163
166