Book a Demo

Author Topic: ShapeScript addsubshape min height?  (Read 4910 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
ShapeScript addsubshape min height?
« on: October 15, 2015, 08:35:19 pm »
Hi,

I defined a UML profile for requirements so I can show the alias, priority, status and title in various compartments.
I used the addsubshape("header",100,15), addsubshape("main",100,70), addsubshape("footer",100,15)... in the main shape.
I have a header and footer compartments that become too small when I resize the item. Is there any way to set a minimum height on these compartments?

thanks
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


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 addsubshape min height?
« Reply #1 on: October 15, 2015, 09:07:35 pm »
AFAIK you can only define relative sizes.
But you can define a minimum size for the whole shape I thought.

Geert

Takeshi K

  • EA User
  • **
  • Posts: 632
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: ShapeScript addsubshape min height?
« Reply #2 on: October 15, 2015, 10:59:56 pm »
Hi,

Maybe you can specify the height by using preferredHeight attribute and the border layout. With the border layout, you can use the preferredHeight attribute in the sub shape.

HTH,


--
t-kouno

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: ShapeScript addsubshape min height?
« Reply #3 on: October 16, 2015, 12:18:06 am »
Well, usually I resize manually, And when it's to small and unreadable I make the shape bigger  ;)

Remember that you can change the display parametrically and you would need to take that into account with the sizes. So if it would be possible there were a need for a complex table.

q.
« Last Edit: October 16, 2015, 12:20:06 am by qwerty »