From: Soeren Apel Date: Tue, 31 Dec 2019 15:36:12 +0000 (+0100) Subject: DecodeTrace: Fix some UI bugs X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d4c3b05993c4a6a4260218483b267493065fd470;p=pulseview.git DecodeTrace: Fix some UI bugs --- diff --git a/pv/views/trace/decodetrace.cpp b/pv/views/trace/decodetrace.cpp index 0f625b1a..07f88489 100644 --- a/pv/views/trace/decodetrace.cpp +++ b/pv/views/trace/decodetrace.cpp @@ -275,6 +275,8 @@ void DecodeTrace::paint_fore(QPainter &p, ViewItemPaintParams &pp) { unsigned int y = get_visual_y(); + update_expanded_rows(); + for (const DecodeTraceRow& r : rows_) { if (!r.currently_visible) continue; @@ -1364,9 +1366,11 @@ void DecodeTrace::set_row_collapsed(DecodeTraceRow* r) void DecodeTrace::update_expanded_rows() { for (DecodeTraceRow& r : rows_) { - r.container->move(2 * ArrowSize, get_row_y(&r) + default_row_height_); + + r.container->resize(owner_->view()->viewport()->width() - r.container->pos().x(), + r.height - 2 * default_row_height_); } }