Fix ui frame_impl size constraints
This commit is contained in:
parent
5779680e1d
commit
681bc5cc25
1 changed files with 4 additions and 4 deletions
|
|
@ -135,15 +135,15 @@ namespace psemek::ui
|
|||
if (min_size())
|
||||
{
|
||||
auto s = *min_size();
|
||||
r[0].min = s[0];
|
||||
r[1].min = s[1];
|
||||
r[0].min = std::max(r[0].min, s[0]);
|
||||
r[1].min = std::max(r[1].min, s[1]);
|
||||
}
|
||||
|
||||
if (max_size())
|
||||
{
|
||||
auto s = *max_size();
|
||||
r[0].max = s[0];
|
||||
r[1].max = s[1];
|
||||
r[0].max = std::min(r[0].max, s[0]);
|
||||
r[1].max = std::min(r[1].max, s[1]);
|
||||
}
|
||||
|
||||
return r;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue