This won't notice if someone sets an intervening view's property:

<view id="out" font="$style{'onefont'}">
  <view id="in" onclick="this.setAttribute('font', 'anotherfont')">
    <text>Show me the font</text>
  </view>
</view>

will it?

On 2010-03-25, at 14:31, Max Carlson wrote:

> Change 20100325-maxcarlson-v by maxcarl...@bank on 2010-03-25 11:20:34 PDT
>    in /Users/maxcarlson/openlaszlo/trunk-clean
>    for http://svn.openlaszlo.org/openlaszlo/trunk
> 
> Summary: Make dynamic text register for changes to parent font/size/style 
> attributes
> 
> Bugs Fixed: LPP-8376 - Font attributes from stylesheets do not cascade from 
> parent views to child text nodes (partial)
> 
> Technical Reviewer: ptw
> QA Reviewer: hminsky
> 
> Details: LzText - Register for updates to font/size/style attributes when 
> compiler doesn't supply font information.
> 
> LaszloView - Remove redundant fontname attribute, clean up docs
> 
> LaszloCanvas - Update canvas attribute spec, update comments, don't call 
> __LZresolveReferences() unless necessary.
> 
> CanvasCompiler - Pass canvas font in via 'font' attribute instead of 
> 'fontname'.
> 
> Tests: See LPP-8376 - testcase now works for dynamically created text.
> 
> Files:
> M       WEB-INF/lps/lfc/views/LzText.lzs
> M       WEB-INF/lps/lfc/views/LaszloView.lzs
> M       WEB-INF/lps/lfc/views/LaszloCanvas.lzs
> M       WEB-INF/lps/server/src/org/openlaszlo/compiler/CanvasCompiler.java
> 
> Changeset: 
> http://svn.openlaszlo.org/openlaszlo/patches/20100325-maxcarlson-v.tar
> 


Reply via email to