summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-09-07 22:14:59 -0400
committerpommicket <pommicket@gmail.com>2023-09-07 22:50:12 -0400
commit5100257c186d52ffb61fe26e302ec7205f291599 (patch)
tree9baa768319798c30fd7639061bab303def06d413 /node.c
parentb8be8dd9239f1b08cb578539e634de73751fbad8 (diff)
fix issue where selector detail is cut off
Diffstat (limited to 'node.c')
-rw-r--r--node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.c b/node.c
index aaa730f..8f4e6ae 100644
--- a/node.c
+++ b/node.c
@@ -404,7 +404,7 @@ void node_frame(Ted *ted, Node *node, Rect r) {
float title_xpos = tab_rect.pos.x;
if (title_width > tab_rect.size.x) {
// full tab title doesn't fit in tab -- only show the right end of it
- title_xpos = tab_rect.pos.x + tab_rect.size.x - title_width;
+ title_xpos = floorf(tab_rect.pos.x + tab_rect.size.x - title_width);
}
text_state.min_x = rect_x1(tab_rect);
text_state.max_x = rect_x2(tab_rect);