Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How to set height and width
How to set height and width [message #1804180] Wed, 20 March 2019 05:28 Go to next message
Prajna VGFriend
Messages: 54
Registered: July 2018
Member
Hi all,

I have a container as DRepresentationElement with name 'element'. I want to set its height to -1 ( configure to autosize). I tried to set

element.setHeight(-1)

But it is not configured to autosize. How can we autosize without adding selection listener.
Re: How to set height and width [message #1804199 is a reply to message #1804180] Wed, 20 March 2019 09:45 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 570
Registered: May 2011
Senior Member
Hello,

On the style of the container mapping concerning this element, you can set the size with the field "Height computation expression" and "Width computation expression" in the Advanced tab. Set these value to -1 and it will autosize.

Regards,
Steve


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: How to set height and width [message #1829607 is a reply to message #1804199] Tue, 07 July 2020 14:58 Go to previous messageGo to next message
Thomas Chiang is currently offline Thomas ChiangFriend
Messages: 83
Registered: March 2020
Member
Hey I was wondering if it is possible to default the size to a specified size rather than letting it autosize? What kind of expression would that be?
Re: How to set height and width [message #1854992 is a reply to message #1829607] Thu, 22 September 2022 13:36 Go to previous message
Hakan  Yüksek is currently offline Hakan YüksekFriend
Messages: 22
Registered: October 2021
Junior Member
Thomas Chiang wrote on Tue, 07 July 2020 14:58
Hey I was wondering if it is possible to default the size to a specified size rather than letting it autosize? What kind of expression would that be?


Hi, Did you solve the problem? How can I give Default Sizes to Containers?
Previous Topic:Refreshing diagram nodes based on preference change
Next Topic:How to Set Width and Height of The Containers?
Goto Forum:
  


Current Time: Wed Sep 28 15:37:48 GMT 2022

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

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

Back to the top