Server Post-based updates and widget sizes
Added by Jordi Rovira over 7 years ago
Hi,
I am pretty new to Wt and trying to learn it with a project emulating something like Jenkins: track source repositories and build them.
I made a simple widget that shows the last commits, with an icon with the build result. When the icon is clicked, i want to expand it showing some details. The widget is a WContainer with a WGrid layout that i clear and recreate it every update. I am using server initiated updates for this. I don't want to use a tree widget to keep the flexibility of what i add in the rows.
The attached images show the problem. There are 2 repositories (so 2 widgets, one on above the other) and i expand one revision in the top one. When i recreate the grid with additional rows, it gets compressed in the same area it was using before, and what i want is it growing so that the content is not compressed. The same happens with the bottom widget if i expand it. I am not setting any kind of fixed size to this widget, and when i create it from scratch it always takes the right size regardless the number of revisions i show on it. It all seems related to the update.
Any hint on what i am doing wrong?
Thanks!
j.
before.png (31.1 KB) before.png | Before updating | ||
after.png (37.8 KB) after.png | After updating |
Replies (1)
RE: Server Post-based updates and widget sizes - Added by Jordi Rovira over 7 years ago
Let me reformat this ( i should have previewed :( ... )
Hi,
I am pretty new to Wt and trying to learn it with a project emulating something like Jenkins: track source repositories and build them.
I made a simple widget that shows the last commits, with an icon with the build result. When the icon is clicked, i want to expand it showing some details. The widget is a WContainer with a WGrid layout that i clear and recreate it every update. I am using server initiated updates for this. I don't want to use a tree widget to keep the flexibility of what i add in the rows.
The attached images show the problem. There are 2 repositories (so 2 widgets, one on above the other) and i expand one revision in the top one. When i recreate the grid with additional rows, it gets compressed in the same area it was using before, and what i want is it growing so that the content is not compressed. The same happens with the bottom widget if i expand it. I am not setting any kind of fixed size to this widget, and when i create it from scratch it always takes the right size regardless the number of revisions i show on it. It all seems related to the update.
Any hint on what i am doing wrong?
Thanks!
j.