Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
3e334165
Commit
3e334165
authored
Apr 11, 2016
by
Cedric Roux
Browse files
fix container size allocation
parent
078b4ab9
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/utils/T/tracer/gui/container.c
View file @
3e334165
...
...
@@ -3,6 +3,8 @@
#include <stdio.h>
#include <stdlib.h>
#define MAX(a, b) ((a)>(b)?(a):(b))
static
void
repack
(
gui
*
g
,
widget
*
_this
)
{
printf
(
"REPACK container %p
\n
"
,
_this
);
...
...
@@ -84,7 +86,7 @@ hints_ok:
l
->
item
->
hints
(
g
,
l
->
item
,
&
cwidth
,
&
cheight
);
l
->
item
->
allocate
(
g
,
l
->
item
,
this
->
common
.
x
,
this
->
common
.
y
+
cy
,
//this->hint_width, cheight);
width
,
cheight
);
MAX
(
width
,
cwidth
),
cheight
);
cy
+=
cheight
;
l
=
l
->
next
;
}
...
...
@@ -118,7 +120,7 @@ hints_ok:
while
(
l
)
{
l
->
item
->
hints
(
g
,
l
->
item
,
&
cwidth
,
&
cheight
);
l
->
item
->
allocate
(
g
,
l
->
item
,
this
->
common
.
x
+
cx
,
this
->
common
.
y
,
cwidth
,
this
->
hint_height
);
cwidth
,
MAX
(
height
,
cheight
)
/*
this->hint_height
*/
);
cx
+=
cwidth
;
l
=
l
->
next
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment