webview 3.85: fix a specific case when col width was calculated wrong
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 27s
Build system / Build (pull_request) Successful in 5m16s

This commit is contained in:
2025-03-17 02:18:51 +02:00
committed by Max Logaev
parent 1a756358f5
commit 292bd1d739
3 changed files with 5 additions and 5 deletions

View File

@@ -465,9 +465,10 @@ void TWebBrowser::tag_table()
}
if (table.cols.get(tr_pos-1)-td_pos>1) && (tag.get_number_of("width")) {
if (strchr(tag.value, '%')) {
tag.number = cur_cell_w - table.margin - 23 - left_gap * tag.number / 100;
tag.number = cur_cell_w * tag.number / 100; //
}
if (tag.number < draw_w) draw_w = tag.number;
if (tag.number < list.w - table.margin - left_gap) draw_w = tag.number;
}
draw_y = row_start_y;
td_pos++;