Skip to content

doneFunc not firing #145

@pumkincreative

Description

@pumkincreative

Hello,

I'm using this helpful plugin to create horizontal columns (like your example 5 on the website - http://welcome.totheinter.net/autocolumn/sample5.html ). However, the columnizer needs some assistance to resize the container after it has finished columnizing as it also contains an image. Thus, my code looks like this:

$columnize.columnize({
        width: 254,
        height: 445,
        buildOnce: true,
        doneFunc: function() {
            var columnizeWidth = $columnize.width() + $('.illustration').width() + 100;
            var contentWidth = columnizeWidth + $('.illustration').width();
            $columnize.width(columnizeWidth);
            $content.width(contentWidth);
            bottomLineWidth = contentWidth + linkPanelWidth + 105;
        }
});

This works fine almost all the time, but if the window width is below a certain value so that the beginning of the column div is not visible, the doneFunc functions do not fire (I've checked this with console logs). The columns get created, so the plugin is clearly running, but for some reason the callbacks are not happening. Do you have any thoughts about why this might be?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions