Fix text clipping for labels moved on the left boundary

This commit is contained in:
Jamie Wong 2018-01-08 23:08:18 -08:00
parent 95e76e9377
commit 04d617f024

View File

@ -255,6 +255,7 @@ export class FlamechartPanZoomView extends ReloadableComponent<FlamechartPanZoom
if (physicalLabelBounds.left() < 0) {
physicalLabelBounds = physicalLabelBounds
.withOrigin(physicalLabelBounds.origin.withX(0))
.withSize(physicalLabelBounds.size.withX(physicalLabelBounds.size.x + physicalLabelBounds.left()))
}
if (physicalLabelBounds.right() > physicalViewSize.x) {
physicalLabelBounds = physicalLabelBounds