-
Notifications
You must be signed in to change notification settings - Fork 80
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
First Time Init, tooltip littlebit offset #31
Comments
From the above details i can't reproduce the reported issue.. Can you please update the additional details or update me a sample to reproduce this. I have prepared the below demo with your requirement where the case was working fine. Please confirm that you are using the latest version (v1.3) of roundSlider. |
i think issue is raised within my project, and i manage it to fix by doing little css hack, i put width and height property to the .rs-tooltip-text class and it's worked. i hope this will fixed now. |
I got this problem too! |
@hanying33: I hope, you may apply the tooltip related styles in the create event.. so that at that time only the tooltip was misplaced.. i just make the below demo, can you check this and let me know whether this is your scenario: If yes, you can use the "this._updateTooltipPos()" function to refresh the tooltip position. Check here: I think instead of adding the styles from script, just apply the styles through the CSS is better. @yashilanka: I think for you also, this is the sample problem. So check and let me know your comments. |
Thanks @soundar24 for the quick reply. I tried "this._updateTooltipPos()" function, it doesn't work in my case. By defining the margin-top and margin-left for "span.rs-tooltip-text" class in my css file will fix my problem. I don't think it's the perfect solution, but it's working. So I'll keep it for now. |
If possible can you share me a link to check your sample. Whether it may be the problem your application or from the source side, once i reproduce the issue then i can found the details.. so that it would be better for other users also.. Otherwise you can host the sample in any test link and share me, or give me any idea to reproduce this issue... Thanks .. :) |
It's part of a big project based on angularjs. I don't have a sample link, but I can describe it. HTML:
JS:
My usage of the library is very straight forward/ |
Here where you have applied the tooltip styles ? in the same page, or in any other page (if yes, is that another page loaded dynamically ?). |
tooltip style is written in a separate css file. it's loaded at the very beginning. |
I hope the problem is due to, the styles are definitely loaded after the control render. So that while the control rendering the styles are not considered. To confirm this, you can apply the styles in the create event instead of from another CSS file, like in the below fiddle: This definitely works and doesn't cause any problem. |
Thank you! |
Tooltip related problems was completed resolved on roundSlider v1.5.1, and additionally provided a method refreshTooltip to update the tooltip position. |
I have a problem, in my code when i initialize roundslider, it's tooltip position littlebit offset, but when i change the value by dragging handle, it reposition correctly. why is that.. i didn't touch css, please find the attachment and the code i use to init my roundslider
This is the issue when i first time init
The text was updated successfully, but these errors were encountered: