Hi Chris,

That's absolutely perfect, thanks very much :)

John

-----Original Message-----
From: Christian Schmidt [mailto:[email protected]] 
Sent: 13 July 2009 14:02
To: qooxdoo Development
Subject: Re: [qooxdoo-devel] Modal blocker is only 101 pixels high!

Hi John,

I found it! The issue was fixed after the 0.8.2 release. The 
qx.ui.root.Page has a bug in the "__syncBlocker" method, please use the 
attached [2] code instead.

You can patch the file by running these steps:
1) create an own mixin
2) copy the code from [2] into it
3) use the patch method [1] to override the old "__syncBlocker" method. 
e.q.:
  //call this line at the beginning of the 'main' method on your 
Application.js
  qx.Class.patch(qx.ui.root.Page, myApp.MPagePatch);

I haven't tested this, but I hope this solve your problem.

Cheers,
Chris

[1] http://demo.qooxdoo.org/current/apiviewer/#qx.Class~patch
[2]
__syncBlocker : function()
{
  var doc = this.__doc;

  this._getContentBlocker().setStyles({
    height: doc.documentElement.scrollHeight + "px",
    width: doc.documentElement.scrollWidth + "px"
  });
},


John Spackman schrieb:
> Hi Chris,
>
> We're using 0.8.1; we're literally a few days away from a major release so if 
> you could point me in the direction of a patch that would be great.
>
> Cheers
> John
>
> -----Original Message-----
> From: Christian Schmidt [mailto:[email protected]] 
> Sent: 13 July 2009 08:19
> To: qooxdoo Development
> Subject: Re: [qooxdoo-devel] Modal blocker is only 101 pixels high!
>
> Hi John,
>
> I can remember, that there was a issue with inline applications and 
> modal windows.
>
> Which qooxdoo version do you use?
>
> Cheers,
> Chris
>
> John Spackman schrieb:
>   
>> Hi,
>>
>> Earlier today my modal windows became non-modal - they'd been working fine
>> before and that particular code hadn't been touched.  We use an Inline
>> application and the change which triggered the problem was tracked to the
>> div outside the div outside where the Qooxdoo app is placed - a designer had
>> set div's style to "position: absolute; top: 154px".
>>
>> In qx/ui/root/Page.js, in __syncBlocker the blocker is set to the size of
>> the body.offsetWidth x body.offsetHeight, but in our case the
>> body.offsetHeight was returning 101.  Sure enough the partially opaque
>> blocker only appears at the top of the window.  Oddly, if I put up a modal
>> window during application startup, the blocker is full screen for about a
>> second and then __syncBlocker kicks in and resizes it.
>>
>> Is there a reason for calculating the size instead of just choosing
>> something impossibly big?
>>
>> John
>>
>>
>> ------------------------------------------------------------------------------
>> Enter the BlackBerry Developer Challenge  
>> This is your chance to win up to $100,000 in prizes! For a limited time, 
>> vendors submitting new applications to BlackBerry App World(TM) will have
>> the opportunity to enter the BlackBerry Developer Challenge. See full prize  
>> details at: http://p.sf.net/sfu/Challenge
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>   
>>     
>
>
>   


-- 
Christian Schmidt
Software Entwickler

1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
[email protected]

Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver 
Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to