use main btn height instead of frame height

This commit is contained in:
iLLiCiTiT 2021-04-28 11:54:49 +02:00
parent f7fafcd89f
commit c104c26c74

View file

@ -75,7 +75,7 @@ class ButtonWithOptions(QtWidgets.QFrame):
def resizeEvent(self, event):
super(ButtonWithOptions, self).resizeEvent(event)
self.options_btn.setFixedHeight(self.height())
self.options_btn.setFixedHeight(self.main_btn.height())
def _on_options_click(self):
point = self.mapToGlobal(self.rect().bottomLeft())