Project

General

Profile

Actions

Support #2057

closed

WDialog::layoutSizeChanged isn't called

Added by Michaƫl Roy over 10 years ago. Updated over 10 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

Actions #1

Updated by Koen Deforche over 10 years ago

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

Updated by Koen Deforche over 10 years ago

  • Status changed from InProgress to Resolved

Hey,

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

Regards,

koen

Actions #3

Updated by Koen Deforche over 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF