-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resize of task nodes no longer working #567
Comments
Potentially related: #516 |
I also recognized this issue. I think resizing is only lost in VBOX layout. In HBOX it seems to me that it works. |
I can't confirm that. In the workflow example it doesn't work for task nodes which have a |
Sorry - yes my fault. I meant VBOX works and HBOX did not work. |
I want to give in some of my thoughts about this topic: I do not think it's worth to invest to much time in the idea to control the layout form the server side. If I look at my BPMN requirements (which I try to port currently to GLSP), at the end none of my elements will fit into the concept of VBOX/HBOX I currently ended up to the FREEFORM layout and do the layouting in the client side. I also wonder if you dilute the concept of macro layout and micro layout with placing to much layout information on the sever side. For me it seems to be fine if I can define on the server side an element just in its compartment layout.
or
and not specifying how to align them and define paddings or aligns within the compartments. This is for me more like HTML and CSS. As a JSF developer I learned that it's not my job to define the layout in my JSF/XHTML template/page. I just group sections, labels and input fields. All the design is part of CSS and not part of the server side JSF, That's just a thought that comes to my mind when I think about layouting in GLSP. This is not a criticism of your great work. |
@rsoika Thanks for your feedback. As always it's highly appreciated. Of course for highly domain specific languages (like BPMN) might require a lot of additional custom views/elements anyways because the available default elements are not sufficient. In this case, keeping layout definition in the server responsibility might not provide any additional benefit. Additional client modifications like new views and model type definitions are required anyways so the overhead of moving the layout computation in the responsibility of the view is rather minimal. Both use cases are valid and have its application fields. Like most features in GLSP using server-side layout options is opt-in and its completely up to the adopters which approach they want to use. We don't want to restrict this unnecessarily if there is no reason to. In addition, the layout options approach is already provided by sprotty as default so the overhead of adopting it for GLSP is rather minimal. So we rather want to keep the micro layout approach flexible and leave it up the the adopters to implement server-driven or client-driven micro layouting. |
Yes you are right the 'Neu' node is an Activity or Task.
To be honest, I still have no Idea how the server side code should look like to get this working. In the moment my code looks like this:
The icon is computed by the client based on the property 'Category'. Sorry - we are now totally offtopic |
With the improvement of the workflow example styling #492 we lost the ability to resize task nodes.
The problem is that the layout for these nodes has been switched from
vbox
tohbox
. We don't have an improvedlayouter for hbox yet (#443) and therefore are using the default sprotty
hbox
layouter which cannot handle the resize properly.The text was updated successfully, but these errors were encountered: