Skip to main content
Participant
February 4, 2010
Question

Is it possible to set a minimum height for a DIV container?

  • February 4, 2010
  • 1 reply
  • 557 views

Hello fellow developers,

I wonder if it is possible to set a minimum height or a fixed height for a DIV container (P container, SPAN conrainer) like in HTML?

Thank you!

This topic has been closed for replies.

1 reply

Adobe Employee
February 4, 2010

No, sorry, this is not possible.

BigBuchaAuthor
Participant
February 4, 2010

Thank you, Robin!

But is it somehow possible to reserve a portion of space in the text flow so that later I can put a movie clip over this open space?

(In HTML I would create a fixed dimension DIV element for this purpose and add its contents later.)

Adobe Employee
February 4, 2010

Yes. You can create an InlineGraphicElement, and assign to it the width & height that you want to reserve for the MovieClip. When the MovieClip is available, just add it to the InlineGraphicElement. You can do this most easily by calling into the EditManager's insertInlineElement function. Pass it a null source, and a width & height. Then, once you have the MovieClip, you can assign the source by calling EditManager.modifyInlineElement function with the MovieClip as source. Alternatively, you can create and modify the inline by calling directly into the low level APIs to create the InlineGraphicElement and then manipulate it directly and update. If you have a uri for the MovieClip, and just want it to load, pass the uri as the source and TLF will take care of the loading for you.

- robin