ktmprabhu / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

Style doesn't apply to sub-elements #321

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Choose a Component label.

What steps will reproduce the problem?
1. Create a style
2. Create a shape with mode than one sub-elments
3. Apply the style just at shape declaration

What is the expected output? What do you see instead?
All sub-elements should inherit the style, instead nothing happens. 

What version of the product are you using? On what operating system?
0.5.0 v20130626-1040 - OS Windows 8.1 x86

Please provide any additional information below.

shape GuardShape style Guard{
  stretching (horizontal=false, vertical=false)
   rectangle{
    compartment(invisible layout=fit)
    size(width=90,height=80)    
   rounded-rectangle{
     curve(width=10,height=5)
     position(x=0,y=30)
     size(width=90, height=50) 
  }
   line {
    point(x=45,y=32)
    point(x=45,y=2)
  }

style Guard{
    line-color= RGB(165,223,245) 
    line-width= 2
    background-color = RGB(210,239,250)
}

If I apply this style to the single sub-elements everything works as expected. 

Original issue reported on code.google.com by simon.di...@gmail.com on 9 Apr 2014 at 2:01