QTfrontend/ui/widget/keybinder.cpp
changeset 12698 f2690a0ccf19
parent 12236 a0ed4caa6d35
child 12897 fc47fc4af6bd
--- a/QTfrontend/ui/widget/keybinder.cpp	Thu Oct 12 19:04:30 2017 +0200
+++ b/QTfrontend/ui/widget/keybinder.cpp	Thu Oct 12 20:17:00 2017 +0200
@@ -242,13 +242,12 @@
 {
     QComboBox * box = bindCellComboBoxMappings->value(item);
     QTableWidget * table = item->tableWidget();
-    QFrame * frame = box->findChild<QFrame*>();
 
+    box->move(
+        table->horizontalHeader()->sectionSize(0),
+        (table->verticalHeader()->defaultSectionSize() * (item->row() + 1)) - (box->height()) + 1
+    );
     box->showPopup();
-    frame->move(
-        frame->x() + table->horizontalHeader()->sectionSize(0),
-        frame->y() + (table->verticalHeader()->defaultSectionSize() * item->row())
-    );
 }
 
 // When a new row in a bind table is *selected*, this clears selection in any other table