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

matching the input's visibility #29

Open
Pomax opened this issue Aug 14, 2012 · 2 comments
Open

matching the input's visibility #29

Pomax opened this issue Aug 14, 2012 · 2 comments

Comments

@Pomax
Copy link

Pomax commented Aug 14, 2012

right now, making fd-slider do its thing will create visible sliders even for inputs whose CSS display is set to none, visibility is set to hidden or opacity is set to 0. It might be a good idea to look into whether it is possible to mirror the display, visibility and opacity values for the input element that is being fd-slider'd, so that currently hidden inputs don't suddenly turn into visible sliders, and toggling the visibility of the input element (through jQuery or what have you) just works, rather than requiring fd-slider-specific script to be written to make sure visibility applies to both the input and its corresponding fd-slider object.

@freqdec
Copy link
Owner

freqdec commented Jan 20, 2013

Hi, it would be easy to reflect the opacity/visibility/display on creation but you would still have to write a script that "shows" these hidden sliders whenever the associated input is shown. It's impossible to automatically detect changes to the opacity/visibility/display properties (short from using nasty timeouts or not-very-cross-browser events that are really expensive to run).

@Pomax
Copy link
Author

Pomax commented Jan 20, 2013

on creation is better than nothing - as long as it copies over the class/id then any opacity/visibility adjustments based on good CSS selectors (i.e. element agnostic) will still work since they'll be applied to the fd-slider instead

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

2 participants