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: 492
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
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 message
Thomas Chiang is currently offline Thomas ChiangFriend
Messages: 24
Registered: March 2020
Junior 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?
Previous Topic:6.3.1 Will Not Upgrade on 2019-06 Modeling Tools
Next Topic:Basic Dialog Example? Where? Set the name of a created object.
Goto Forum:
  


Current Time: Thu Nov 26 07:11:42 GMT 2020

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

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

Back to the top