Support #2057
closedWDialog::layoutSizeChanged isn't called
0%
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
Updated by Koen Deforche over 11 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
- Target version changed from 3.3.0 to 3.3.1
Updated by Koen Deforche over 11 years ago
- Status changed from InProgress to Resolved
Hey,
A fix (from my git copy) is on its way.
Regards,
koen
Updated by Koen Deforche over 11 years ago
- Status changed from Resolved to Closed