Project

General

Profile

Actions

Bug #1014

closed
DS KD

WDIalog width stretches if not set in IE

Bug #1014: WDIalog width stretches if not set in IE

Added by dima s almost 15 years ago. Updated almost 15 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

KD Updated by Koen Deforche almost 15 years ago Actions #1

  • 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

DS Updated by dima s almost 15 years ago Actions #2

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

KD Updated by Koen Deforche almost 15 years ago Actions #3

  • 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

DS Updated by dima s almost 15 years ago Actions #4

Attached test case.

PL Updated by Pieter Libin almost 15 years ago Actions #5

  • Assignee changed from Pieter Libin to Koen Deforche

this is not a regression, it is already reproducable in wt 3.1.9

KD Updated by Koen Deforche almost 15 years ago Actions #6

  • 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

KD Updated by Koen Deforche almost 15 years ago Actions #7

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom