Code Monkey home page Code Monkey logo

Comments (6)

terrymun avatar terrymun commented on June 12, 2024

Hi Dan,

It's impossible to troubleshoot your problem unless you can provide me with the following:

  1. Error messages from your browser console, if any, and
  2. A minimal demo of your issue (JSbin or JSFiddle would be sufficient)

Also, you should check if:

  • Fluidbox.js and its dependencies have been loaded successfully
  • The associated stylesheet is included (although unlikely an issue, since your white overlay is showing fine), and check for override styles in your document

I am guessing that there is a problem with the script not being able to calculate the correct scaling factor, but then again, without further information on you it is hard to diagnose but to make an educated guess.

from fluidbox.

Dangre avatar Dangre commented on June 12, 2024

Hi Terry,
Thanks for your prompt response.

Based on your feedback, I created a barebones Bootstrap/Fluidbox demo and couldn't replicate the problem. So it's obviously an issue specific to my setup, rather than something linked to Bootstrap.

Further debugging suggests that the CSS transforms aren't being applied. Comparing the results from the "Broken" website to the "Working" demo, I've uploaded a couple of screenshots showing the results differing between the two (no CSS transforms/scaling).

https://dl.dropboxusercontent.com/u/16428633/fluidbox.zip

So, my question is: could you point me in the right direction for where this may be happening in your code, or if you have any suggestions/I can provide any further debugging that would be much appreciated.

I'm currently under NDA for this project, so I can't send through the link which would make this process much easier.

Thanks for your help,
Dan.

from fluidbox.

terrymun avatar terrymun commented on June 12, 2024

Hi Dan,

I can see that the CSS transformation is not being applied in the broken example, but then again, I am unable to diagnose the problem with simply screenshots... so far I have not encountered any issues like that before, so my hands are more or less tied.

Are you using the latest release of Fluidbox? Does the browser console log any error messages?

from fluidbox.

Dangre avatar Dangre commented on June 12, 2024

Hi Terry,
On the specific page I had this issue, the page was referencing an outdated jQuery file (version 1.7.2) – updating to the latest version corrected the issue.

Sorry for the hassle.

Thanks,
Dan

from fluidbox.

lukechesser avatar lukechesser commented on June 12, 2024

I can confirm what Dangre is experiencing. Specifically when placing a fluidbox image inside of the bootstrap grid (version 3), it runs into problems. Not from a JavaScript side, but from a presentation view. I'm going to play with the CSS and see if I can override it in a helpful way. Will post back with results.

from fluidbox.

Dangre avatar Dangre commented on June 12, 2024

Luke,
Can you confirm that the CSS transform is being applied? My issue was that the images didn't scale and center. If that's what's happening in your case, make sure you're using the latest version of jQuery (http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js).

Thanks
Dan

from fluidbox.

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.