Bug #949
closedWTimer Strange problem with WGridLayout and WCartesianChart
0%
Description
Hi,
I'm writing a System Monitor tool using Wt/gSoap and I need graphical charts. I have a web service on remote machine and I'm using WTimer in Wt app every 1 sec to get system resources. Everything was going fine until I added a 2x2 WGridLayout.
Here is the problem: the last row is growing in height (and every thing on last row taking a journey down forever) with every tick of my WTimer. I even removed my hole function code which get called by the timer but there is no effect until I comment this line timer->start();
I'll attach the C code and also the html code generated by Wt. I named them tick1-7 but they are not contiguous ticks, there are a few ticks between them.
Files
Updated by Mamadou Babaei over 12 years ago
I' forgot to mention that I'm using 3.1.10
Updated by Koen Deforche over 12 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
Hey,
This is a common gotcha with layout managers. If you are not constraining the size of the widget in which you set the layout manager, you need to pass a flag to the setLayout call.
E.g.
dvSysMon->setLayout(dvSysMonLayout, AlignTop | AlignJustify);
Regards,
koen
Updated by Koen Deforche over 12 years ago
- Status changed from Resolved to Closed