Layout (theme) problem

knorde

Joined: 2010-02-02
Posts: 64
Posted: Mon, 2012-05-21 17:51

I have a very strange problem.

On this moment i working on the browny wind theme.
I will let it scale to the users screen resolution.
And that works (so far so good :P)

But now the problem:
When i hit Ctrl - F5 (see the attachment) the layout is very strange.
When i hit F5 or Ctrl - R (see the attachment) the layout is ok!

It is only when i hit Ctrl - F5.

The problem is in FF and Safari.
In IE there are no problems.

The site is: http://mydigitalworld.nl

I hope anyone knows what the problem is :)

Greets Kees.

AttachmentSize
f5.png914.22 KB
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2012-05-21 18:22

I don't see the issue in FF but in Chrome I do.
FF says "function checkRes does not always return a value"
So I guess you need to have some default value?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
knorde

Joined: 2010-02-02
Posts: 64
Posted: Mon, 2012-05-21 18:58

checkRes detects the user resolution.
After that the right .css will load.
But now i have coded it so that always the same .css load.
But i have the same problem.

checkRes is not the problem in that case i think :P

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2012-05-21 21:54

Don't know then.
Does it work without your customization?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
knorde

Joined: 2010-02-02
Posts: 64
Posted: Tue, 2012-05-22 07:12

I have found the problem:

.g-thumbnail {
margin-top: 3px;
margin-bottom: 3px;
width: auto;
height: auto;

max-height: 110px;
}

When i delete the width: auto; and height: auto; the problem is fixed.
But in that case the scale is not correctly (see attachment).

Any ideas?

 
knorde

Joined: 2010-02-02
Posts: 64
Posted: Wed, 2012-05-23 09:17

I have the problem solved in a different way.
It's a bit hard to explain because I have multiple adjustments to do in different files but it works.

Thanks as well for your help!