Project

General

Profile

Actions

Bug #561

closed

WDialog : content overflow

Added by Momo LALMI over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
10/15/2010
Due date:
% Done:

0%

Estimated time:

Description

Hi Koen, Hi Wim,

First of all, thank you fore the fantastic work that you are doing :) WT is becoming better and better :)

I want to report a strange behaviour of WDialog, it does not resize to hold it's content, and sometimes when the content is changed,

it overflows

Please, find attached some screenshots (google chrome, same results on FF , opera, safari and IE6 , IE7, IE8, IE9 )

Best regards


Files

wdialog1.png (11.3 KB) wdialog1.png Momo LALMI, 10/15/2010 03:38 PM
wdialog2.png (22.2 KB) wdialog2.png Momo LALMI, 10/15/2010 03:38 PM
wdialog3.png (25.8 KB) wdialog3.png Momo LALMI, 10/15/2010 03:38 PM
Actions #1

Updated by Mamadou Babaei over 13 years ago

Hi,

I can confirm this. there is an overflow also if you are adding a WImage to dlg->contetns().

The only workaround for WImage is to set the size using img~~resize before adding it to dlg~~>contetns().

On other situations I'm using 2/3 WBreak at the end of the form to overcome the situation.

Actions #2

Updated by Koen Deforche over 13 years ago

  • Status changed from New to InProgress
  • Assignee set to Koen Deforche

Hey all,

This is indeed a problem with WDialog. ASFAIK, there is no simple solution. In fact, other JavaScript frameworks all require you to set the size of the dialog yourself. Wt tries to determine a good size of the dialog but will fail if for some reason (like an image not yet loaded, or CSS not yet applied) the size is off from what it measures.

The workaround suggested for WImage is indeed a valid one. The definite "workaround" would be to fix the size of the dialog.

Regards,

koen

Actions #3

Updated by Koen Deforche over 13 years ago

  • Status changed from InProgress to Resolved

Hey all,

Actually, I think I figured out a way to solve this !

Can you see with latest git ?

Regards,

koen

Actions #4

Updated by Momo LALMI over 13 years ago

hummmm,

WDialog::done(WDialog::Accepted) is not working now :) the WDialog never hides :)

Actions #5

Updated by Momo LALMI over 13 years ago

Please, rollback modifications related to WDialog...because they prevent it from hiding automatically when accepted and prevent it from hiding even if we call WDialog::hide()

I will resize the WDialog using WDoalog::resize()

Actions #6

Updated by Koen Deforche over 13 years ago

  • Status changed from Resolved to Closed

Fixed in 3.1.6

Actions

Also available in: Atom PDF