-
Notifications
You must be signed in to change notification settings - Fork 47
Mention on new line breaks #18
Comments
Hmmm... honestly didn't even think about it. Easiest answer? Don't break mentions. Just use |
I think i got kind of close. It has something to do with the mix of box-sizing, border, and overflow. I put box-sizing: border-box on both the textbox and underlay, changed the span to use box-shadow instead of border (because it adds width to it), and overflow: hidden on the textbox. Edit: this is what I got. The downside is that we lose padding:
|
If the span has |
Nvm yeah your solution definitely fixes a few problems with the span's bounding box being bigger than the text it's supposed to be highlighting. |
@handonam want to submit a small PR with the fix to the example? |
I'm also curious if you find this project to be useful at all since it's sort of hobbled together pretty crappily |
Should we close this and/or add instructions or an example to the readme or like add an FAQ? |
Actually, forgot to update the readme. |
Should we just reference the CSS file itself instead of duplicating it in the Readme.MD? We can also add CSS comments to explain what's going on (such as the confusion on the transparent border on my PR). |
Yup that sounds like a good idea On Mon, Mar 7, 2016, 12:04 PM Handonam [email protected] wrote:
|
Not too sure if this has been fixed, but I ran into this issue recently. To see how I got around it - https://jacobmarshallpp.github.io/ui-mention/example - for me, it was related to the scrollbar showing on the textarea, but not the highlight element, behind. |
I was just trying out the demo, and I noticed that if you do a mention towards the end of the textarea box, it breaks up like so:
I'm trying to find ways to make the div match the text below it appropriately, but I keep getting misses. Any thoughts on how we can remedy this?
The text was updated successfully, but these errors were encountered: