Skip to content

Commit 87de9cd

Browse files
authored
Merge pull request #97 from labscript-suite/dragdroptab-fix
Fix issue with dragdroptab - convert float coords to int
2 parents 29ac288 + 835bbe8 commit 87de9cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

labscript_utils/qtwidgets/dragdroptab.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ def updateCurrentTime(self, current_time):
316316
if dy * (target_pos_y - new_pos_y) < 0:
317317
new_pos_y = target_pos_y
318318

319-
self.limbo_position = QPoint(new_pos_x, new_pos_y)
319+
self.limbo_position = QPoint(
320+
int(round(new_pos_x)), int(round(new_pos_y))
321+
)
320322
else:
321323
self.limbo.animation_over()
322324
self.limbo = None

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy