Skip to content

Commit b4770f8

Browse files
author
M. Fatih Cırıt
committed
proportionally extend the rect to the right
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
1 parent 2d80db8 commit b4770f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/autoware_overlay_rviz_plugin/autoware_mission_details_overlay_rviz_plugin/src/remaining_distance_time_display.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ void RemainingDistanceTimeDisplay::drawRemainingDistanceTimeDisplay(
7575
return QRectF(top_left_inner, size_inner);
7676
};
7777

78-
const QRectF rect_inner = calculate_inner_rect(backgroundRect, 0.7, 0.7);
78+
QRectF rect_inner = calculate_inner_rect(backgroundRect, 0.7, 0.7);
79+
// Proportionally extend the rect to the right to account for visual icon distance to the left
80+
rect_inner.setWidth(rect_inner.width() * 1.08);
7981

8082
// Calculate distance row rectangle
8183
const QSizeF distance_row_size(rect_inner.width(), rect_inner.height() / 2);

0 commit comments

Comments
 (0)