mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
[ui] Propagate resize deltas in view hierarchies
While it hasn't been a problem yet (no multi-level resizing), I'm sure it will be before too long.
This commit is contained in:
parent
e504079938
commit
e67b374fd4
1 changed files with 2 additions and 1 deletions
|
@ -183,13 +183,14 @@ View_UpdateHierarchy (view_t view)
|
|||
&& (cont[i].resize_x || cont[i].resize_y)) {
|
||||
int dx = len[par].x - oldlen[par].x;
|
||||
int dy = len[par].y - oldlen[par].y;
|
||||
modified[i] |= 2; // propogate resize modifications
|
||||
oldlen[i] = len[i]; // for child resize calculations
|
||||
if (cont[i].resize_x) {
|
||||
len[i].x += dx;
|
||||
}
|
||||
if (cont[i].resize_y) {
|
||||
len[i].y += dy;
|
||||
}
|
||||
modified[i] |= 2; // propogate resize modifications
|
||||
}
|
||||
if (modified[i] || modified[par]) {
|
||||
modified[i] |= 1; // propogate motion modifications
|
||||
|
|
Loading…
Reference in a new issue