0
Welcome Guest! Login
0 items Join Now

Determine viewport size

  • Determine viewport size

    Posted 13 years 2 months ago
    • Hi,

      Does Gantry have any built in functions to determine the available viewport size that I can call on? I've found a great piece of JS that does this, but wanted to make sure it wasn't already built in.

      Thanks!
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: Determine viewport size

    Posted 13 years 2 months ago
    • The Gantry feature SmartLoad uses this to determine the client browsers viewport size to determine how many images of the webpage to load to fit the viewport. How you would use that for anything else I don't know.
  • Re: Determine viewport size

    Posted 13 years 2 months ago
    • Does anyone know if this information is stored in an accessible variable somewheres? I'd love to be able to extract the browser height.

      I've got a script I'm using for this, but if its native that's even better.

Time to create page: 0.048 seconds