ace editor DOM container height

1,015 views
Skip to first unread message

Chris Braddock

unread,
Aug 1, 2011, 1:00:22 PM8/1/11
to ace-d...@googlegroups.com
I'm a bit stuck trying to embed Ace editors inside LIs.  Specifically, the parent editor container's height does not seem to inherit (or "bubble up") the Ace editor's height when the editor is instantiated.

I put together a small test case to demonstrate shown in the following screen caps.  Can someone help?

Relative source code:


Pre-editor layout:


Editor instantiated (and overlapping container elements)


Fabian Jakobs

unread,
Aug 2, 2011, 5:25:13 AM8/2/11
to ace-d...@googlegroups.com
Hi Chris,

by default the editor has "position:absolute", which will detach the
editor from the parent's layout flow. Try setting "position:relative"
on editor's container element to override this.

Best,
Fabian

> --
> You received this message because you are subscribed to the Google Groups
> "Ajax.org Cloud9 Editor (Ace)" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/ace-discuss/-/A3Ck-aDQmWcJ.
> To post to this group, send email to ace-d...@googlegroups.com.
> To unsubscribe from this group, send email to
> ace-discuss...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/ace-discuss?hl=en.
>

Chris Braddock

unread,
Aug 4, 2011, 1:17:22 PM8/4/11
to ace-d...@googlegroups.com
That was exactly it - thanks!
Reply all
Reply to author
Forward
0 new messages