Project

General

Profile

Actions

Support #2057

closed
MR KD

WDialog::layoutSizeChanged isn't called

Support #2057: WDialog::layoutSizeChanged isn't called

Added by Michaël Roy about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
07/24/2013
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I need resizable modeless dialog. Works well, except that layoutSizeChanged is not called.

Here is my constructor:

Interestingly enough, I do call setLayoutSizeAware for my LargePlotWidget (derived from WPaintedWidget), and its layoutSizeChanged does not get called either; it is stretched instead. There is no network activity at all when dragging to resize the WDialog.

PlotDlg::PlotDlg()
: Wt::WDialog()
{

Wt::WBorderLayout* lt = new Wt::WBorderLayout;
contents()->setLayout(lt);
plotWidget = new LargePlotWidget(plotId, doc);
lt->addWidget(plotWidget, Wt::WBorderLayout::Center);

setWindowTitle("test");
setClosable(true);
setModal(false);
setResizable(true);
setLayoutSizeAware(true);
show();
}

void PlotDlg::layoutSizeChanged(int newWidth,int newHeight)
{
plotWidget->resize(newWidth, newHeight);
}

Thanks,
Michael

KD Updated by Koen Deforche about 13 years ago Actions #1

  • Status changed from New to InProgress
  • Assignee set to Koen Deforche
  • Target version changed from 3.3.0 to 3.3.1

KD Updated by Koen Deforche about 13 years ago Actions #2

  • Status changed from InProgress to Resolved

Hey,

A fix (from my git copy) is on its way.

Regards,
koen

KD Updated by Koen Deforche about 13 years ago Actions #3

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom