mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 06:45:09 -06:00
Only update position of label when it's visible
This prevents unneeded re-rendering
This commit is contained in:
parent
b25d6360ab
commit
bd18a539e2
1 changed files with 3 additions and 2 deletions
|
@ -202,8 +202,9 @@ Item
|
|||
// dragging a tool handle.
|
||||
Rectangle
|
||||
{
|
||||
x: -base.x + base.mouseX + UM.Theme.getSize("default_margin").width
|
||||
y: -base.y + base.mouseY + UM.Theme.getSize("default_margin").height
|
||||
id: toolInfo
|
||||
x: visible ? -base.x + base.mouseX + UM.Theme.getSize("default_margin").width: 0
|
||||
y: visible ? -base.y + base.mouseY + UM.Theme.getSize("default_margin").height: 0
|
||||
|
||||
width: toolHint.width + UM.Theme.getSize("default_margin").width
|
||||
height: toolHint.height;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue