Bug #1014
closedWDIalog width stretches if not set in IE
0%
Description
Hi,
If the width of WDialog is not explicitly set it stretches to the width of the browser window in Internet Explorer.
Regards,
dima
Files
Updated by Koen Deforche about 13 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
Hey Dima,
Incidently we found out about this, at least if you include a 'float' widget in a dialog. Is this the case ?
And is this a regression?
Regards,
koen
Updated by dima s about 13 years ago
Hi Koen,
Don't know what means 'float' widget. For example if I include layout(vertical) in a dialog and add there checkbox this happens and without layout doesn't. Don't know if it is regression. In 3.1.9 and 10 it was ok.
Regards,
dima
Updated by Koen Deforche about 13 years ago
- Assignee changed from Koen Deforche to Pieter Libin
- Target version set to 3.2.0
Hey dima,
If it was okay in 3.1.9 and 10, then that sounds like a regression ?
If you have a small test case, that would be welcome, otherwise we'll try to reproduce it ourselves.
Regards,
koen
Updated by dima s about 13 years ago
- File test_dialog_width.cc test_dialog_width.cc added
Attached test case.
Updated by Pieter Libin about 13 years ago
- Assignee changed from Pieter Libin to Koen Deforche
this is not a regression, it is already reproducable in wt 3.1.9
Updated by Koen Deforche about 13 years ago
- Status changed from InProgress to Resolved
Hey,
In fact, it is because of the (FAQ) misconception in layout manager behaviour.
You are using a layout manager without constraining the size of the dialog, in which case the behaviour is undefined.
You probably want to fix the example using:
pCont->setLayout( pVLayout, Wt::AlignLeft | Wt::AlignTop );
This fixes the layout in IE. I have been postponing publishing a post on how to make layout managers behave the way you want ... and I have also been thinkering with ideas to make the API more explicit about this.
Regards,
koen
Updated by Koen Deforche about 13 years ago
- Status changed from Resolved to Closed