The cause of the problem is because simplelayout got "fixed" to not force
the off-axis value to zero. With that now out of the code, the built-in
layout of radiogroup (y-axis 5 pixel spacing) is running in addition to the
specified layout.

As radiogroup is now written, I think the user is expected to override the
built-in layout in this manner:

<canvas>
    <radiogroup>
        <simplelayout axis="y" spacing="5"/>

      <radiobutton text="A"/>

      <radiogroup layout="class:simplelayout; axis:x; spacing:5">
        <radiobutton text="a"/>
        <radiobutton text="b"/>
        <radiobutton text="c"/>
        <radiobutton text="d"/>
      </radiogroup>

      <radiobutton text="B"/>

    </radiogroup>

</canvas>



Is this "fix" out of the question? If it is, I need to figure out how to
hook into the view so any defined layout will destroy the built-in one.

Phil






 >Jim Grandy updated LPP-2154:
 >----------------------------
 >
 >     Assign To: Philip Romanik
 >      Priority: P1  (was: --)
 >
 > > SimpleLayout not working correctly in nested radiogroups
 > > --------------------------------------------------------
 > >
 > >          Key: LPP-2154
 > >          URL: http://www.openlaszlo.org/jira/browse/LPP-2154
 > >      Project: OpenLaszlo
 > >         Type: Bug
 > >   Components: Components - all
 > >     Versions: 3.3.1
 > >     Reporter: Mike Santy
 > >     Assignee: Philip Romanik
 > >     Priority: P1
 > >      Fix For: 3.3.2
 > >  Attachments: 3.3-behavior.png, 3.3.1-behavior.png
 > >
 > >
 > > The code below creates a radiogroup within a radiogroup.  The
 > > outermost radiogroup is layed out vertically, and the nested
 > horizontally.  Version 3.3.1 of OL lays this out incorrectly. <canvas>
 > >   <radiogroup>
 > >     <simplelayout axis="y" spacing="5"/>
 > >     <radiobutton text="A"/>
 > >     <radiogroup>
 > >       <simplelayout axis="x" spacing="5"/>
 > >       <radiobutton text="a"/>
 > >       <radiobutton text="b"/>
 > >       <radiobutton text="c"/>
 > >       <radiobutton text="d"/>
 > >     </radiogroup>
 > >     <radiobutton text="B"/>
 > >   </radiogroup>
 > > </canvas>
 > > OL 3.3 correctly renders this as:
 > > A
 > > a b c d
 > > B
 > > but OL 3.3.1 renders it as
 > > A
 > > a
 > >   b
 > >     c
 > >       d
 > > B
 > > I will attach screenshots to furture illustrate.


_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to