Skip to content

Toolbar renders away from div having CSS property overflow set to auto. #549

Closed
@qasid

Description

@qasid

Toolbar renders at bottom and away from selection when all text is selected using keyboard command Ctrl+A or select manually using mouse
toolbar_renders_away_from_selection
Steps
1 Create a div with over flow property set to auto.

<div id="container" >
          <div contenteditable="true"  id="description" style="width:100px; height:100px; overflow:auto;">
            <p>Armstrong spent about <s>three and a half</s> two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5&nbsp;kg) of lunar material for return to Earth. A third member of the mission, <a href="http://en.wikipedia.org/wiki/Michael_Collins_(astronaut)">Michael Collins</a>, piloted the <a href="http://en.wikipedia.org/wiki/Apollo_Command/Service_Module">command</a> spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p>
                </div>

        </div>
  <script type="text/javascript">
var instance = AlloyEditor.editable('description');
</script>
  1. Select all text (using mouse or Ctrl+A).

Expected result
Toolbar renders near selected text.

Actual result
Toolbar renders away from selected text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions