Skip to main content



      Home
Home » Eclipse Projects » Sirius » How to set height and width
How to set height and width [message #1804180] Wed, 20 March 2019 01:28 Go to next message
Eclipse UserFriend
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 05:45 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: How to set height and width [message #1829607 is a reply to message #1804199] Tue, 07 July 2020 10:58 Go to previous messageGo to next message
Eclipse UserFriend
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 09:36 Go to previous message
Eclipse UserFriend
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: Sat Apr 26 16:36:41 EDT 2025

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

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

Back to the top