graphlib MDL-21371: Legend layout issue when different legend texts had different heights.
This commit is contained in:
+1
-1
@@ -943,7 +943,7 @@ function init_legend() {
|
||||
$textWidth = $this->calculated['legend']['boundary_box_max']['width']; // width of largest legend item.
|
||||
$textHeight = $this->calculated['legend']['boundary_box_max']['height']; // use height as size to use for colour square in legend.
|
||||
$width = $padding * 2 + $textWidth + $textHeight * 2; // left and right padding + maximum text width + space for square
|
||||
$height = $padding * ($numSets + 1) + $sumTextHeight; // top and bottom padding + padding between text + text.
|
||||
$height = ($padding + $textHeight) * $numSets + $padding; // top and bottom padding + padding between text + text.
|
||||
|
||||
|
||||
$this->calculated['legend']['boundary_box_all'] = array('width' => $width,
|
||||
|
||||
Reference in New Issue
Block a user