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

Collapse white space when inner element is shrunk #33

Open
barrychapman opened this issue Jun 13, 2018 · 0 comments
Open

Collapse white space when inner element is shrunk #33

barrychapman opened this issue Jun 13, 2018 · 0 comments

Comments

@barrychapman
Copy link

barrychapman commented Jun 13, 2018

I have an issue where I have an object where when the object shrinks to fit, I use the callback to adjust the height of the container ($in object). The trouble is, when watch is enabled, it does not increase the height because the height has been set on the container.

Is there a way to make that flexible?

var $fits = $('#mymodal').find('fieldset.admin');
var $ins  = $('#mymodal').find('#myfields');

var $fit = $fits.get(0);
var $in  = $ins.get(0);

        fit($fit, $in, {vAlign: fit.TOP, watch: true}, function(ty) {
            $ins.css(
                {
                    'max-height': ty.height + 'px'
                }
            )
        });
        fit($fit, $in, {vAlign: fit.TOP, watch: true});

Any ideas?

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

1 participant