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

Bubble theme toolbar shows up underneath element #1100

Closed
sferoze opened this issue Nov 5, 2016 · 18 comments
Closed

Bubble theme toolbar shows up underneath element #1100

sferoze opened this issue Nov 5, 2016 · 18 comments

Comments

@sferoze
Copy link
Contributor

sferoze commented Nov 5, 2016

The bubble toolbar shows up underneath a the side menu. How can I change it so the toolbar loads into the body container instead of inside the quill document container? Otherwise the toolbar gets cut off like so:

screen shot 2016-11-05 at 5 50 32 am

Expected behavior:

The quill toolbar should always be on top of everything. Should load toolbar into body container to make this happen.

Actual behavior:

The toolbar loads underneath elements on the screen since the toolbar is inside the quill container.

@jhchen
Copy link
Member

jhchen commented Nov 6, 2016

Quill can only guarantee to be on top of other Quill UI (which it does), but short of making users place the Quill container at the root, it cannot guarantee other UI in your application will not cover it.

Take a look at Understanding CSS z-index and in particular this example. Even though DIV 4 has the highest z-index, it cannot escape its relative parent's place in the DOM hierarchy.

@jhchen jhchen closed this as completed Nov 6, 2016
@sferoze
Copy link
Contributor Author

sferoze commented Nov 7, 2016

@jhchen your right, I actually found out that I had a mistake in my design which was causing this. I fixed it now and the toolbar works as expected. Not an issue with Quill.

@ajoshi31
Copy link

@sferoze : I am using angular material that has fixed sidebar, how can I fix this issue I am also having the same issue.
Even I tried z-index but as said it won't help.

@sferoze
Copy link
Contributor Author

sferoze commented Dec 22, 2016

@ajoshi31 if z-index doesn't work then you will have to look at the layout of your dom elements and try adjusting the order of dom elements in html. Also check the overflow of the quill container and make sure its set to visible.

In my case I did a ton of restructuring of how the menu works and I noticed that the toolbar issue was resolved when I did.

@APengue1
Copy link

I have solved this problem using the bounds configuration option as mentioned in #1124

@shyamal890
Copy link

I frankly believe the tooltip component should be appended to the body instead. This would solve a lot of issues. This is how medium-editor works too.

@letitfly
Copy link

Same here. Sometime it's difficult to set the right bounds, and the drop down menu from the bubble toolbar does not observe the bounds option.

@shyamal890
Copy link

@jhchen Should have a look if the tooltip can be appended to the body instead.

@rajuashok
Copy link

Has this been looked into? I've used bounds to fix this for the popup toolbar in Bubble, but the link preview for any linked text doesn't seem to follow these bounds :(.

@Carl012
Copy link

Carl012 commented May 14, 2019

Indeed, the link tooltip in Bubble seems broken.

I just posted here: #360

@douglasdc
Copy link

I solve that using z-index on .ql-bubble .ql-tooltip

.ql-bubble .ql-tooltip {
  z-index: 1;
}

@FenoRC
Copy link

FenoRC commented Feb 11, 2020

I found a solution for my situation:
when create the configuration object, set property 'bounds' with the selector of quill container.

Example:

const SELECTOR_CONTAINER = '#quill-container-2';
const DEFAULT_CONFIG = {
        theme: 'bubble',
        bounds: SELECTOR_CONTAINER
};

new Quill(SELECTOR_CONTAINER, DEFAULT_CONFIG);

@Itsmaqsud
Copy link

I found a solution for my situation:
when create the configuration object, set property 'bounds' with the selector of quill container.

Example:

const SELECTOR_CONTAINER = '#quill-container-2';
const DEFAULT_CONFIG = {
        theme: 'bubble',
        bounds: SELECTOR_CONTAINER
};

new Quill(SELECTOR_CONTAINER, DEFAULT_CONFIG);

You saved my day! Thank you!

@Seemeile
Copy link

We had the problem, that the tooltip was placed inside the quill editor box:
image
turns out the problem was the "preserveWhitespace" property. We removed it and the tooltip was displayed above the editor box again.

@mkamalkayani
Copy link

I also faced this problem and removing the overlfow: auto from a parent element solved it.

@nikkhah63
Copy link

overlfow: visible or use bounds

@ayelen3976
Copy link

Does anyone know how I can put the tooltip in the top position?

@hsiaalex
Copy link

Does anyone know how I can put the tooltip in the top position?

When I set the bounds as per #1100 (comment), my tooltip showed at the top, and was not under other elements. Without the setting, it showed below and under elements.

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