Sorry, here is the Chrome debugger info:

Uncaught TypeError: Cannot read property 'marginLeft' of null

////////////////////////////////////////////////////////

// Get an element metric in pixels
px: function(c, s) {
   var v = null;
   if (document.defaultView && document.defaultView.getComputedStyle) {
v = document.defaultView.getComputedStyle(c, null)[s]; //<<<<<CRASH HERE
   } else if (c.currentStyle) {
     v = c.currentStyle[s];
   } else {
     v = c.style[s];
   }

////////////////////////////////////////////////////////

mtm

On 12/18/2009 6:53 AM, Michael Mayers wrote:
> Thanks !
>
> I have switched to the latest git,
> Now I get a javascript error ;<
>
> ////////////////////////////
> On Firefox 3.5.6
> ////////////////////////////
> "Wt internal error: [Exception... "Could not convert JavaScript argument
> arg 0"  nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)"  location:
> "JS frame ::
> http://tweakix/portfolio/index.wt?wtd=qREwS4SkDfov8eAK&_=%2FGames&request=script&rand=763910783
> :: anonymous :: line 275"  data: no], code: undefined, description:
> undefined"
>
> ////////////////////////////
> Chrome does not give nearly as much info..
> ////////////////////////////
>
> If I comment out the painted widgets, there is no error, so I have at
> least isolated it to that..
>
> ////////////////////////////
> If it helps, the expanded javascript output (from chrome script console
> view) is here:
> http://www.tweakoz.com/portfolio/wt_err.txt
>
> ////////////////////////////
>
> mtm
>
> On 12/18/2009 4:04 AM, Koen Deforche wrote:
>> Hey Michael,
>>
>> 2009/12/15 Michael Mayers<[email protected]>:
>>> Hi List,
>>>
>>> /////////////////////////////////////////
>>>
>>> First, I would like to say I am actually enjoying learning Wt.
>>> I have been avoiding Web Programming for the longest time,
>>>    mainly because I just dont have time to learn all of the
>>>    different web technologies.
>>>
>>> I am primarily a C++ programmer, and am very familiar with Qt,
>>> so Wt was a natural choice for me, and all of the other benefits
>>> like security, browser compatibility, etc.. are nice too.
>>>
>>> My main comment is sometimes the documentation leaves something to be
>>> desired.
>>
>> We hear you.
>>
>>> /////////////////////////////////////////
>>> Case in point:
>>> /////////////////////////////////////////
>>>
>>> I cannot figure out how to get the proper on screen dimensions of a
>>> widget in a form that a painter understands.
>>>
>>> These widgets are laid out with in a (arbitrary) layout hierarchy.
>>>
>>> How do I get the widgets CALCULATED (post layout) dimensions ?
>>
>> In general you cannot. The latest git version however will do what you
>> want as now a WPaintedWidget will be properly managed by a layout
>> manager. If you do not provide dimensions to your painted widget, the
>> widget will be repainted everytime the layout manager resizes the
>> widget, and will set the widget dimensions accordingly.
>>
>> The example below will thus work well, provided you put the widget
>> inside a layout manager.
>>
>> Regards,
>> koen
>>
>> ------------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Verizon Developer Community
>> Take advantage of Verizon's best-in-class app development support
>> A streamlined, 14 day to market process makes app distribution fast and easy
>> Join now and get one step closer to millions of Verizon customers
>> http://p.sf.net/sfu/verizon-dev2dev
>
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to