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

Min Size #161

Open
wants to merge 2 commits into
base: 0.6-stable
Choose a base branch
from
Open

Min Size #161

wants to merge 2 commits into from

Conversation

nachor4
Copy link

@nachor4 nachor4 commented Oct 10, 2013

New feature added.

The slider now can be reconfigured to shrink to a minimal size which can be specified throw the 2 new parameters min_height and min_width which are set in 0 by default meaning no restriction.

When the window resizes, if any of those parameters are set, the script calculate the maximum between the new window size and the values to change the slider size.

Two configurations added: min_width and min_height.
Both are set in 0 which be equivalent to disable the functionality.
If they are changed, the slider will shrink up to the min width or min height.
Sometimes a minimum width and/or height is required. 
If the properties min_width and min_height are set when the window resizes it will compare the new width and/or height with the minimum values set and calculate the maximum to avoid overshrink the slider.
@frebro
Copy link

frebro commented Dec 2, 2013

👍

@nicinabox
Copy link
Owner

How is this different from setting a min width in a media query?

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

Successfully merging this pull request may close these issues.

3 participants