[Laszlo-dev] [Laszlo-checkins] r1624 - openlaszlo/branches/coal/WEB-INF/lps/lfc/services

Jim Grandy jgrandy at openlaszlo.org
Wed Aug 23 08:48:24 EDT 2006


But in this case, you want to nest two of them. And you don't have to  
use defaultplacement, you can use placement in the subnodes.  
Something like this:

<class name="nested">
     <view name="top"/>
     <view name="bottom"/>
</class>

<nested name="A">
   <nested name="B" placement="top">
     <view name="C" placement="bottom"/>
   </nested>
</nested>

Then verify that style information was being inherited properly.

jim

On Aug 23, 2006, at 7:15 AM, P T Withington wrote:

> Components typically use default placement to put their children
> somewhere deeper in their descendants, like in the body of a window
> rather than as a sibling of the window decoration.  You could make a
> test by just creating a class that has 3 child views (say, called
> top, middle, bottom) and then specifying defaultplacement to be  
> middle.
>
> On 2006-08-23, at 08:55 EDT, Benjamin Shine wrote:
>
>> You guys have eagle eyes. (Cuz you're Mr. Brightsides?)
>> Fixed in rev 1629, although I confess, I haven't written a test
>> case. What uses default placement, and thus, would be affected by
>> this change? Could one of you sketch a test case in enough detail
>> that I can go implement it?
>>
>> -ben
>>
>> On Aug 22, 2006, at 8:46 PM, P T Withington wrote:
>>
>>> I'm suspicious.  This is a loop, you changed the loop
>>> initialization, what about the loop step?
>>>
>>> ben at openlaszlo.org wrote:
>>>> Author: ben
>>>> Date: 2006-08-22 22:08:54 -0400 (Tue, 22 Aug 2006)
>>>> New Revision: 1624
>>>> Modified:
>>>>    openlaszlo/branches/coal/WEB-INF/lps/lfc/services/LzCSSStyle.js
>>>> Log:
>>>> Change parent to immediateparent.
>>>> Modified: openlaszlo/branches/coal/WEB-INF/lps/lfc/services/
>>>> LzCSSStyle.js
>>>> ===================================================================
>>>> --- openlaszlo/branches/coal/WEB-INF/lps/lfc/services/
>>>> LzCSSStyle.js	2006-08-22 22:17:48 UTC (rev 1623)
>>>> +++ openlaszlo/branches/coal/WEB-INF/lps/lfc/services/
>>>> LzCSSStyle.js	2006-08-23 02:08:54 UTC (rev 1624)
>>>> @@ -122,7 +122,7 @@
>>>>      //if we get here, try on parent (scene graph parent, not
>>>> superclass)
>>>>      // walk up the tree until we get to the canvas
>>>>      // TODO: switch to using immediateparent not parent.
>>>> -    var parent = node.parent;
>>>> +    var parent = node.immediateparent;
>>>>      while (parent && (! (parent instanceof LzCanvas) ) ){
>>>>          for ( var i = this._rules.length -1; i >=0; i-- ){
>>>>              var r = this._rules[ i ];
>>>> _______________________________________________
>>>> Laszlo-checkins mailing list
>>>> Laszlo-checkins at openlaszlo.org
>>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins
>>>
>>
>
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev



More information about the Laszlo-dev mailing list