tribute icon indicating copy to clipboard operation
tribute copied to clipboard

Not working properly if scrolled

Open the-hotmann opened this issue 3 years ago • 6 comments

My HTML is like this:

<div id="test-autocomplete-textarea-container" class="col-sm-12">
	<label for="test-autocomplete-textarea" class="form-label user-select-none"><b>Inser Text</b></label>
	<textarea id="test-autocomplete-textarea" cols="27" rows="3" class="form-control textarea" required></textarea>
	<div class="invalid-feedback user-select-none">Text is needed.</div>
</div>

What did you expect to happen? The Popup should work as in the example

What happened instead? It popped up on the wrong spot. Also (in the DEMO) when the aspect-ration of the screen is not standard it does not work aswell.

Screenshots:

Tribute Bug

Tribute Bug 2

Tribute Bug 3

Seems its even depending on window-height which does not make sense as it should just orientate itself on the test-autocomplete-textarea element. Specially on the last screenshot you see (I always tipped in the same textarea) that it appends the searchresults very very very low. On mobile devices even out of the view.

the-hotmann avatar Oct 21 '20 21:10 the-hotmann

So I just figured out that this just happens when you HAVE scrolled!!! Just open the DEMO, then Zoom in untill the cotent expands so you can scroll a bit.

  1. Scroll to the top. 1.1 Type something in to trigger the menu to come up (everything ok)
  2. Scroll down a bit 2.1 Type something in to trigger the menu to come up (Pops up somewhere but not where it should)

the-hotmann avatar Oct 22 '20 20:10 the-hotmann

@MartinHotmann did you find a solution, or mayby you use other js lib? I have te same problem, but with froala editor, when text is very long menu opens off the screen.

pburczyn avatar May 17 '21 10:05 pburczyn

@pburczyn sadly no, noone responded here and as I have not found a good replacement I then removed this feature.

the-hotmann avatar May 18 '21 10:05 the-hotmann

@MartinHotmann i found solution (by chance), you have to set CCS property max-height on froala div tag or on any parent. In my case i have to set on body, max-height: 100vh;

pburczyn avatar May 18 '21 10:05 pburczyn

@MartinHotmann i found solution (by chance), you have to set CCS property max-height on froala div tag or on any parent. In my case i have to set on body, max-height: 100vh;

hello, i cannot understand what is froala div tag or any parent node, now, i have same issue.

weiweijiuzhao avatar Oct 19 '22 02:10 weiweijiuzhao

image

weiweijiuzhao avatar Oct 19 '22 02:10 weiweijiuzhao