mirror of
https://github.com/jlfwong/speedscope.git
synced 2024-11-22 22:14:25 +03:00
Fix text clipping for labels moved on the left boundary
This commit is contained in:
parent
95e76e9377
commit
04d617f024
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user