Project

General

Profile

Actions

Bug #949

closed

WTimer Strange problem with WGridLayout and WCartesianChart

Added by Mamadou Babaei over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
-
Start date:
08/12/2011
Due date:
% Done:

0%

Estimated time:

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

tick5.png (141 KB) tick5.png tr height growing to 2514, div height to 2499 Mamadou Babaei, 08/12/2011 04:02 PM
tick6.png (146 KB) tick6.png tr height growing to 2614, div height to 2599 Mamadou Babaei, 08/12/2011 04:02 PM
tick7.png (139 KB) tick7.png tr height growing to 2754, div height to 2739 Mamadou Babaei, 08/12/2011 04:02 PM
test.cpp (5.81 KB) test.cpp //My C++ class Mamadou Babaei, 08/12/2011 04:02 PM
tick1.png (77.1 KB) tick1.png Memory chart going down Mamadou Babaei, 08/12/2011 04:02 PM
tick2.png (81.9 KB) tick2.png Memory chart going down Mamadou Babaei, 08/12/2011 04:02 PM
tick3.png (80.8 KB) tick3.png Memory chart going down Mamadou Babaei, 08/12/2011 04:02 PM
tick4.png (132 KB) tick4.png tr height growing to 2375, div height to 2359 Mamadou Babaei, 08/12/2011 04:02 PM
Actions #1

Updated by Mamadou Babaei over 12 years ago

I' forgot to mention that I'm using 3.1.10

Actions #2

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

Actions #3

Updated by Koen Deforche over 12 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF