Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » CSS styling of MCompositePart
CSS styling of MCompositePart [message #1448766] Mon, 20 October 2014 12:14 Go to next message
Robert Fisher is currently offline Robert FisherFriend
Messages: 5
Registered: June 2014
Junior Member
When I have 2 parts in a (fixed-layout) part-sash-container, I can use the following styling:

.MPartSashContainer {
-fx-hspace: 3;
-fx-vspace: 3;
}

However, when I instead use a composite part, the following does not work:

.MCompositePart {
-fx-hspace: 3;
-fx-vspace: 3;
}

I don't see any spacings. Is the API different or not implemented yet?

Cheers,
Rob
Re: CSS styling of MCompositePart [message #1448801 is a reply to message #1448766] Mon, 20 October 2014 13:18 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
An MCompositePart is made up of an

AnchorPane
BorderPane
center GridLayoutPane

So the selector is: .MCompositePart > BorderPane > GridLayoutPane

Tom

On 20.10.14 14:14, Robert Fisher wrote:
> When I have 2 parts in a (fixed-layout) part-sash-container, I can use
> the following styling:
>
> MPartSashContainer {
> -fx-hspace: 3;
> -fx-vspace: 3;
> }
>
> However, when I instead use a composite part, the following does not work:
>
> MCompositePart {
> -fx-hspace: 3;
> -fx-vspace: 3;
> }
>
> I don't see any spacings. Is the API different or not implemented yet?
>
> Cheers,
> Rob
>
Re: CSS styling of MCompositePart [message #1448807 is a reply to message #1448801] Mon, 20 October 2014 13:29 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Maybe we should generify this a bit? So that you can at least write

..MCompositePart > .layoutpane

?

Tom

On 20.10.14 15:18, Tom Schindl wrote:
> An MCompositePart is made up of an
>
> AnchorPane
> BorderPane
> center GridLayoutPane
>
> So the selector is: .MCompositePart > BorderPane > GridLayoutPane
>
> Tom
>
> On 20.10.14 14:14, Robert Fisher wrote:
>> When I have 2 parts in a (fixed-layout) part-sash-container, I can use
>> the following styling:
>>
>> MPartSashContainer {
>> -fx-hspace: 3;
>> -fx-vspace: 3;
>> }
>>
>> However, when I instead use a composite part, the following does not work:
>>
>> MCompositePart {
>> -fx-hspace: 3;
>> -fx-vspace: 3;
>> }
>>
>> I don't see any spacings. Is the API different or not implemented yet?
>>
>> Cheers,
>> Rob
>>
>
Re: CSS styling of MCompositePart [message #1449593 is a reply to message #1448807] Tue, 21 October 2014 15:25 Go to previous messageGo to next message
Robert Fisher is currently offline Robert FisherFriend
Messages: 5
Registered: June 2014
Junior Member
The first solution works, thanks.
Re: CSS styling of MCompositePart [message #1449596 is a reply to message #1448807] Tue, 21 October 2014 15:26 Go to previous message
Robert Fisher is currently offline Robert FisherFriend
Messages: 5
Registered: June 2014
Junior Member
The first solution works, thanks. The second would also be fine.
Previous Topic:Fooling Equinox......
Next Topic:CSS Editor failure on Luna JEE x64
Goto Forum:
  


Current Time: Tue Sep 24 14:06:12 GMT 2024

Powered by FUDForum. Page generated in 0.04939 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top