keyboard_widget: only use default widgets when determining top-left
parent
d3cbf4f1fb
commit
75baeb28cd
|
|
@ -146,6 +146,7 @@ class KeyboardWidget(QWidget):
|
||||||
|
|
||||||
# find the global top-left position, all the keys will be shifted to the left/up by that position
|
# find the global top-left position, all the keys will be shifted to the left/up by that position
|
||||||
for key, cls in keys:
|
for key, cls in keys:
|
||||||
|
if key.layout_index == -1:
|
||||||
obj = cls(key)
|
obj = cls(key)
|
||||||
top_x = min(top_x, obj.x)
|
top_x = min(top_x, obj.x)
|
||||||
top_y = min(top_y, obj.y)
|
top_y = min(top_y, obj.y)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue