Git Product home page Git Product logo

Comments (10)

yconst avatar yconst commented on August 21, 2024

Thanks for pointing this out. It seems that it is related to setting width in percentage, i.e. if you set a fixed width (e.g. 200px) it works fine..

I'll be looking into this one, thanks

from freetile.

niallthompson avatar niallthompson commented on August 21, 2024

I am also trying to columns/images with a percentage width.

Is that possible?

from freetile.

vinha avatar vinha commented on August 21, 2024

One thing I noticed creating my em-based grid, was that Freetile had problems if the em-width couldn't be converted to exact pixel dimensions. For example, if 1 em is 16 px, and the tile width is 1.666 em.

Using percentages for widths, it would be easy to end in situation like this.

from freetile.

elihorn avatar elihorn commented on August 21, 2024

I don't know whether anyone resolved this, but I am also having the same problem. The solution I came to was to simply fire the layout function twice as shown below. This doesn't seem very elegant, but is a quick, easy fix. Any other developments out there on this issue?

target.freetile().freetile('layout')

from freetile.

camelot3000 avatar camelot3000 commented on August 21, 2024

elihorn - I tried your solution - But - The solution you proposed fixed an issue in ie9 but broke freetile in ie10 and ie8 in my case - I've never had issues in decent browsers. People might want to add that to their list of tests while implementing.

from freetile.

VincentJousse avatar VincentJousse commented on August 21, 2024

Hello Yannis, have you any news about this bug to give us ?

from freetile.

yconst avatar yconst commented on August 21, 2024

@VincentFTS Not really. Tried @desandro's getSize to circumvent this but it broke some stuff so I had to let it go.

from freetile.

framini avatar framini commented on August 21, 2024

Any news on this?

from freetile.

protherj avatar protherj commented on August 21, 2024

I was able to get it working by doing a 'layout' call after a timer. Something like this:

    setTimeout(function() {
         $('.section').freetile('layout');
    }, 1000);

-Jason

from freetile.

gyopiazza avatar gyopiazza commented on August 21, 2024

I know this is an old post but the issue persists and I found a cleaner way to call layout:

target.freetile({
  callback: function(){
    target.freetile('layout');
  }
});

from freetile.

Related Issues (20)

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.