Book a Demo

Author Topic: shapescript with fixed height  (Read 2965 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
shapescript with fixed height
« on: May 10, 2019, 05:51:32 pm »
Hi,

I'm looking for a way to make an element with a fixed height.
It should only allow to be elongated, but not change in height.
Anyone know if this is possible, and how to do it?

Thanks

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: shapescript with fixed height
« Reply #1 on: May 10, 2019, 10:40:56 pm »
You will need an add-in to observe size changes. Haven't heard of any property to allow that else.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: shapescript with fixed height
« Reply #2 on: May 11, 2019, 03:24:27 am »
A found a possibility to make it look lik you can't change the height.

Use a border layout, add a subshape north, and set the preferredHeight property

If you then resize the element the visible height doesn't change.
Unfortunately that didn't help with my use case.

Geert