Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rich text editor: Bottom border disappears when there's overflowing content beneath it. #7210

Open
HerbertsVaadin opened this issue Mar 14, 2025 · 0 comments

Comments

@HerbertsVaadin
Copy link

Description

A strange issue I noticed when playing around with different components.
If I have a RichTextEditor and place create overflow underneath it (by adding components, or tall divs for example), the bottom border of the RTE will disappear. Seems to be related to VerticalLayout as well.

Image

You can see, in the same situation with no overflow, the border does not disappear:

Image

Expected outcome

The Bottom border does not disappear.

Minimal reproducible example

import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.component.html.H2;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.component.richtexteditor.RichTextEditor;
import com.vaadin.flow.router.Menu;
import com.vaadin.flow.router.PageTitle;
import com.vaadin.flow.router.Route;
import jakarta.annotation.security.RolesAllowed;
import org.vaadin.lineawesome.LineAwesomeIconUrl;

@PageTitle("Rich Text editors")
@Route("rich-text")
@Menu(order = 2, icon = LineAwesomeIconUrl.ENVELOPE_OPEN_TEXT_SOLID)
@RolesAllowed("USER")
public class RichTextEditors extends VerticalLayout {
    public RichTextEditors() {
        setSizeFull();

        add(new H2("On its own"));
        add(new RichTextEditor());

        add(new H2("Div height 6000px"));

        var nestedDiv = new Div();
        nestedDiv.setHeight("6000px");
        nestedDiv.setWidth("500px");
        nestedDiv.getStyle().setBackgroundColor("pink");
        add(nestedDiv);
    }
}

Steps to reproduce

  1. Create a view out of snippet above
  2. Verify bug.

Environment

Vaadin version(s): 24.7.0.rc1
OS: Linux Mint

Browsers

Chrome, Firefox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant