-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Bug after release 4.7.0 #161
Comments
Can you provide a screenshot of the visual error you are experiencing? Also, is it happening with BS3 or BS4? |
Basically the buttons are covering the inputbox because on those lines I
mentioned you are adding left:0; when they already where setted right:0; I
don't think the version of BS would matter as this is a simple CSS thing
which is causing problems.
I use bower on the project for dependency management and I had
bootstrap-touchspin ^4.2.5 as a dependency so bower grabbed
bootstrap-touchspin 4.7.3, I had to manually check the last releases until
I was able to find the most recent release without that bug and it happened
to be 4.6.2, the next release (4.7.0) is where the bug was introduced on
the code.
This is more or less how it looks when that left:0; is present on the css
on the lines I indicated.
![imagen](https://github.com/istvan-ujjmeszaros/bootstrap-touchspin/assets/6219523/712068fb-a81a-4d11-a515-35de678704b3)
This is how it looks when you remove those lines
![imagen](https://github.com/istvan-ujjmeszaros/bootstrap-touchspin/assets/6219523/bbae6a0d-8131-4696-938d-d945d72cd725)
Thanks.
El vie, 23 jun 2023 a las 16:15, István Ujj-Mészáros (<
***@***.***>) escribió:
… Can you provide a screenshot of the visual error you are experiencing?
Also, is it happening with BS3 or BS4?
—
Reply to this email directly, view it on GitHub
<#161 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPOOA2W23MOUVGKIIVYBM3XMXTMPANCNFSM6AAAAAAZRY3HGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Thanks for the details and for the effort. FYI the images didn't came through. It is just a guess but you may be initializing TouchSpin on an inut with existing addons or something like that. There are HTML files under You can just download the source zip and run the html files locally. |
I fixed the images so you can see what that makes, how it looks when you have that left:0; which wasn't until 4.7.0 release. And if you think it, it doesn't make sense, I mean, if you have position: absolute, and also right:0 (which is reasonable because the up/down buttons go on the right of the input field), if you also put left:0 then it will stretch those buttons to actually cover the total width of the parent element which is also the input's parent, and since the buttons have a higher z-index than the input, then they end up covering the whole input box. Once again, until release 4.6.2 those left:0 where not present on your css, and it worked just fine, somehow those lines got introduced in your code after release 4.7.0 and remained there until now. It's true I'm also using angular-touchspin which is basically a wrapper to use you "plugin" throug an angularjs directive but it shouldn't have anything to do with the issue because it doesn't add any css, just applies your plugin through a directive. |
Thank you for the additional details. FYI the vertical buttons were breaking out of the content box before v4.7.0, so I needed to re-structure the DOM, that's when a new wrapper was being introduced around the buttons (not around the input - you can check that if interested by downloading the source files and open one of the html files I have mentioned earlier). My guess is that angular-touchspin is injecting its own HTML which is incompatible with the new version. I have never used Angular but will try to reproduce it. Until then, you can fix it by adding a definition like |
Yeah, here are the HTML that is being injected by angular-touchspin: That should be updated at their end, would you mind opening an issue there? Or you can just use the |
If angular-touchspin is still being update I will open an issue there no
prob. Thanks for your time and your library.
El dom., 25 de junio de 2023 8:42 p. m., István Ujj-Mészáros <
***@***.***> escribió:
… Yeah, here are the HTML that is being injected by angular-touchspin:
https://github.com/nkovacic/angular-touchspin/blob/master/src/components/touchspin/touchspin.directive.html
That should be updated at their end, would you mind opening an issue
there? Or you can just use the left:initial trick if it makes it work as
before.
—
Reply to this email directly, view it on GitHub
<#161 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPOOA226IMQE37ZWJTRBXTXNDEFVANCNFSM6AAAAAAZRY3HGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
From that version and over to the latest version you added a left: 0 on the jquery.bootstrap-touchspin.css file which is breaking the visual.
Tha rule is both on line 10 and 19.
It's an easy fix, just remove both lines from the css file.
The text was updated successfully, but these errors were encountered: