diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-11-14 15:55:20 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-11-14 15:55:20 -0500 |
| commit | e90e0e00be3bacadfecbd706d7943286c51fe840 (patch) | |
| tree | 3065b6c2c02bca5a0b1f90770bf4edceef026f14 | |
| parent | 58cba3aa2440f13c2874422842cd19aa55238e92 (diff) | |
pke: static-ui subtract flex padding once
| -rw-r--r-- | src/static-ui.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/static-ui.cpp b/src/static-ui.cpp index 1204879..33910db 100644 --- a/src/static-ui.cpp +++ b/src/static-ui.cpp @@ -562,7 +562,6 @@ void pke_ui_recalc_sizes_recursive(pk_arr_t<pke_ui_box_instance_buffer_item> &ar flex_params.px_per_unit = available_size / flex_params.unit_total; flex_params.px_per_unit = floor(flex_params.px_per_unit); } else { - available_size -= (float)(flex_count+1) * (box->flex_padding); flex_params.px_per_unit = available_size / flex_params.unit_total; } } |
