Project

General

Profile

Actions

Bug #1014

closed

WDIalog width stretches if not set in IE

Added by dima s about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
10/05/2011
Due date:
% Done:

0%

Estimated time:

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

test_dialog_width.cc (1.37 KB) test_dialog_width.cc dima s, 10/11/2011 02:10 PM
Actions #1

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

Actions #2

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

Actions #3

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

Actions #4

Updated by dima s about 13 years ago

Attached test case.

Actions #5

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

Actions #6

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

Actions #7

Updated by Koen Deforche about 13 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF