Git Product home page Git Product logo

babylon-grid's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

babylon-grid's Issues

Some fixes

Please fix line 300 in jquery.babylongrid.js
from
$(this.element).html('');
to
$(this.element).find('.babylongrid-container').html('');

Otherwise reload deletes all the content.

and change line 309 .off('babylongrid:reset') to .off('babylongrid:reload') in the destructor. This listener does not exist.

How to call babylongrid:resize after assets are loaded

Example : I set in this way.

(function($){

                $('#grigliarticoli').babylongrid({
                    scheme: [
                        {
                            minWidth: 960,
                            columns: 3
                        },
                        {
                            minWidth: 500,
                            columns: 2
                        },
                        {
                            minWidth: 0,
                            columns: 1
                        }
                    ],
                    afterRender: function() {
                        console.log('Tutto Ok');
                    }
                });
}(jQuery));

Resizing dont work, remains with the actual grid.

No possibility to reset the grid

Hi
Currently I am using your grid for a search. I have the requirement to first clear the grid for a new search and then add the search results. Therefore I need a possibility to clear the cached articles.

How about adding the following code?

$(this.element).on('babylongrid:remove', function() {
    self._removeArticles();
});

/*
 Remove articles
 */
_removeArticles: function() {
    this.cached.articles = [];
    this._setColumns(this.__currentColumns);
},

Resizing Bug in Firefox

Hi turboMaCk,

I have a strange issue with Firefox.
In Chrome the page loads perfectly. But in Firefox the images are not in the right height and resizing the page just makes it worse...
See yourself here:
http://cy-borg.net/maria/

Bug before resizing

I have a bug when I first arrive on a page (or reload) :

babylonbefore

If I resize just a little bit, all is perfect :

babylonafter

I tried to add "visibility: hidden" on the container, but it did not fix the bug.
Is it a known issue?

Remove old articles and then, add new one

Is it possble to delete all content and then add new content?

I have some items already loaded via ajax, then i need to remove all these one to add new others..

cleaning the _InnerHtmlbackup

captura de tela 2016-08-31 as 20 01 37

captura de tela 2016-08-31 as 19 49 20

the content should alternate between 3 and all questions on my FAQ every time I click on "Ver mais dúvidas"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.