CSS inheritance problem

Pedro Duque Vieira pedro.duquevieira at gmail.com
Mon Dec 17 14:11:12 PST 2012


OK, thanks David.

On Mon, Dec 17, 2012 at 9:24 PM, David Grieve <david.grieve at oracle.com>wrote:

> No, the children should not inherit this. Please log a bug with some code
> to reproduce the problem.
>
> On Dec 17, 2012, at 3:02 PM, Pedro Duque Vieira <
> pedro.duquevieira at gmail.com> wrote:
>
> > Hi,
> >
> > I've got a popup which is composed of an anchor pane and it's children.
> > I wanted to add a border to the popup so I styled the anchor pane like
> so:
> > -fx-border-style: solid;
> > -fx-border-width: 1;
> > -fx-border-color: gray;
> >
> > The problem is that all the children of the anchor pane will inherit this
> > style. I've managed to find a workaround for this which was to add 2
> > background, the first one does the job of being a border.
> >
> > My question is: is this a suitable behavior? children inheriting the
> > parents border style?
> >
> > Cheers,
> >
> > --
> > Pedro Duque Vieira
>
>


-- 
Pedro Duque Vieira


More information about the openjfx-dev mailing list