We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d036931 commit c9f41b6Copy full SHA for c9f41b6
src/flex_line.cpp
@@ -238,20 +238,17 @@ bool litehtml::flex_line::fix_min_max_violations()
238
? flex_clamp_state_min_violation
239
: flex_clamp_state_max_violation;
240
241
- if (total_violation > 0)
+ for (auto& item : items)
242
{
243
- for (auto& item : items)
+ if (!item->frozen)
244
245
- if (!item->frozen)
+ if (item->clamp_state == state_to_freeze)
246
247
- if (item->clamp_state == state_to_freeze)
248
- {
249
- item->frozen = true;
250
- } else
251
252
- all_frozen = false;
253
- item->clamp_state = flex_clamp_state_unclamped;
254
- }
+ item->frozen = true;
+ } else
+ {
+ all_frozen = false;
+ item->clamp_state = flex_clamp_state_unclamped;
255
}
256
257
0 commit comments