X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2Fwidgets%2FBasicBlockWidget.cxx;h=5dc27ce40efc5760e736dcd3241292e6bd047b7d;hp=2880af34a8cf2ff23ca13798d1f81291aa3ee99b;hb=8ab2c60ccb7a4be4119f0672c0fb51816a41d71e;hpb=f47f71fed69162146363c86d95ad18aac9598035 diff --git a/src/gui/widgets/BasicBlockWidget.cxx b/src/gui/widgets/BasicBlockWidget.cxx index 2880af3..5dc27ce 100644 --- a/src/gui/widgets/BasicBlockWidget.cxx +++ b/src/gui/widgets/BasicBlockWidget.cxx @@ -56,7 +56,7 @@ void BasicBlockWidget::addItem(uint8_t* bytes, size_t num_bytes, _layout.addWidget(instruction_label, current_row, 1); instruction_label->setVisible(true); - width = 12 + _widget.sizeHint().width(); + width = 12 + _widget.childrenRect().width(); height = 25 + _widget.childrenRect().height(); if (width < 250) width = 250;