Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Sprotty » Using compartments with labels and buttons and in an elk-layouted graph
Using compartments with labels and buttons and in an elk-layouted graph [message #1860752] Thu, 31 August 2023 13:58 Go to next message
Semira Linden is currently offline Semira LindenFriend
Messages: 2
Registered: August 2023
Junior Member
Hello!

I am trying to create a sprotty graph of computer science concepts for a project at my university. I am slowly getting the hang of sprotty, but I can't layout the nodes the way I like, because when I add labels inside of compartments (like in the class-diagram example), the nodes don't resize to the size of the labels any more. Nodes don't seem to respond to the layout: 'hbox' tag, so the labels and expand buttons are just shown below each if they are not in a compartment.
Am I doing something wrong or is this just not supported? Any help would be appreciated!
Re: Using compartments with labels and buttons and in an elk-layouted graph [message #1860760 is a reply to message #1860752] Fri, 01 September 2023 09:09 Go to previous messageGo to next message
Miro Spönemann is currently offline Miro SpönemannFriend
Messages: 78
Registered: March 2015
Location: Kiel, Germany
Member

Hi, hard to say without seeing an example. Do you have a link to a public repo?
Re: Using compartments with labels and buttons and in an elk-layouted graph [message #1860778 is a reply to message #1860760] Sat, 02 September 2023 16:52 Go to previous message
Semira Linden is currently offline Semira LindenFriend
Messages: 2
Registered: August 2023
Junior Member
I don't have a public repo, but I edited the random-graph example and attached the relevant files to show what I mean. The text just continues outside the node.
If I put the labels inside of a node instead of a compartment it does get somewhat layouted, but it adds padding and the layouting of the button gets weird. I think the button is never really considered? It isn't mentioned in elk-layout in any case. I have also tried giving it the type node:button:expand, but then it again gets a lot of padding and moves below the labels.

Thank you for your quick answer!
Previous Topic:Question: Binding openFeature to a dialog
Next Topic:System UI tests for Sprotty
Goto Forum:
  


Current Time: Tue Dec 10 08:39:58 GMT 2024

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

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

Back to the top