Skip to content

InlineToolbar position wrong if content width is very small #2692

@klfman

Description

@klfman

Description

When an inline editable node is selected in the guest frame, the InlineToolbar jumps to the far left, if the selected element has a small width:

Screenshot 2020-03-26 at 10 40 57

Steps to Reproduce

  • Create an inline editable object (for example a small icon in the footer or a logo in a logowall) with a very small css-styled width of 30px
  • select it in the neos backend -> the toolbar is moved to the far left
  • Change the width of the element to some larger value, lets say 200px
  • select it in the neos backend -> the toolbar is positioned correctly

Further observations

I first thought my websites styling was messing with the css of the inline UI (which had happend before when I set a style on the body element). But when inspecting the toolbar, i saw that there is an inline-style set on one of the containers: left: 0;.

Screenshot 2020-03-26 at 10 46 08

I'm suspecting a bug in the javascript code that calculates this left value.

Affected Versions

Reproduced with:

  • Neos: 4.3.11; UI: 4.0.5
  • Neos: 5.1.15; UI: 5.1.14

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions