FW-7 Sticker

Having gotten my site pretty much the way I want it, I then decided to add another aspect, which poses something of a problem … I want to have my left-hand-side vertical menu and my header ‘stick’ and the image gallery and other elements scroll. To wit … I’m trying Walter’s Sticker action.

I am though, having trouble getting it to work. Perhaps I’m not understanding how to. I’ve read what I can find on here, but I’m still failing.

Here’s a test site (with the gallery blank which makes it easier to see what’s going on). Try scrolling the page to see the problem.

http://test-1.grantsymon.com/test/sticker_embedte1.html

If you click the ‘Test’ link at the bottom of the css menu, you can see how the site is currently functioning and will get a better idea of how I want it to work.

Any help, much appreciated!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

on mobile it gives a juicebox error: xml file not found
Op 19 nov. 2014 15:20 schreef “grantsymon” email@hidden:

Having gotten my site pretty much the way I want it, I then decided to add
another aspect, which poses something of a problem … I want to have my
left-hand-side vertical menu and my header ‘stick’ and the image gallery
and other elements scroll. To wit … I’m trying Walter’s Sticker action.

I am though, having trouble getting it to work. Perhaps I’m not
understanding how to. I’ve read what I can find on here, but I’m still
failing.

Here’s a test site (with the gallery blank which makes it easier to see
what’s going on). Try scrolling the page to see the problem.

http://test-1.grantsymon.com/test/sticker_embedte1.html

If you click the ‘Test’ link at the bottom of the css menu, you can see
how the site is currently functioning and will get a better idea of how I
want it to work.

Any help, much appreciated!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Correct.

That was intentional so that it is easier to see what’s happening with the elements that I’m trying to ‘stick’ with the ‘Sticker’ action.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sticker doesn’t work well with items that don’t have a defined width in pixels. Your menu item is set to undefined width, so it expands to fill the page when the scroll happens. It’s also losing its background because that property is not set on the box itself, and this Action has not been updated for the new world order of Actions that manipulate object styles.

I’d try using a position:fixed in the Inspector first, and see how that works.

Walter

On Nov 19, 2014, at 9:20 AM, grantsymon email@hidden wrote:

Having gotten my site pretty much the way I want it, I then decided to add another aspect, which poses something of a problem … I want to have my left-hand-side vertical menu and my header ‘stick’ and the image gallery and other elements scroll. To wit … I’m trying Walter’s Sticker action.

I am though, having trouble getting it to work. Perhaps I’m not understanding how to. I’ve read what I can find on here, but I’m still failing.

Here’s a test site (with the gallery blank which makes it easier to see what’s going on). Try scrolling the page to see the problem.

http://test-1.grantsymon.com/test/sticker_embedte1.html

If you click the ‘Test’ link at the bottom of the css menu, you can see how the site is currently functioning and will get a better idea of how I want it to work.

Any help, much appreciated!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter.

It doesn’t work with fixed width. Is this something I can do in another way with FW7, or would I be better off re-thinking this aspect?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

So, I found some old threads and picked up some tips (thanks Walter) and managed to get something working, that is pretty much what I’m after and wasn’t really very hard to do at all. :slight_smile:

However …

For some reason the fixed header’s text has gone faint/jaggy. Does anyone know why this might be and how to fix it?

(These are just rough test sites)

Here is my test page with the fixed top header and fixed css menus to the left :

http://test-2.grantsymon.com/test/blogtest-2.html

And this is my other test page, which shows how the text is normally :

http://test-2.grantsymon.com/test/embedtest-14.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’m getting good at answering my own questions. :slight_smile:

It’s because I am using a google css font and they don’t work in the fixed items. Right?

Is there a way to use google fonts in a non-css item?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It’s probably because something in this page (possibly Prototype as it manipulates the position of these elements) is switching text rendering contexts on your browser, and your text is changing from 2D to 3D rendering, which always messes with the apparent weight. One of the quickest ways around this is to set the opacity of the element to 0.999998 or similar. This forces the rendering to stay in one place.

Walter

On Nov 20, 2014, at 5:12 PM, grantsymon email@hidden wrote:

I’m getting good at answering my own questions. :slight_smile:

It’s because I am using a google css font and they don’t work in the fixed items. Right?

Is there a way to use google fonts in a non-css item?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter.

I can’t see how to make an element that opacity/transparency.

However, I’ve made a new empty file and tested various ways of doing this and it seems like a bug to me. The only thing I’ve added, is the Google font.

As you will see, only the 3rd version displays the font correctly.

NB, the whacky effect … scroll the page so that the image is partly above the top bar, then resize narrow the window. The picture jumps in front of the top text bar. I shall ask support what they think.

http://test-2.grantsymon.com/fontTest/testfontbug.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

One of the quickest ways around this is to set the opacity of the element to 0.999998 or similar.

Select the item that contains the text you are having issue with and note its Name/ID

Now in Page>Html markup paste the following in the Before slot

<style type="text/css">
#youritemID { opacity: 0.999998 !important; }
</style>

Or for a more blanket approach

<style type="text/css">
div { opacity: 0.999998 !important; }
</style>

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Dave.

I can’t get either of those to work. I put up another page:

http://test-2.grantsymon.com/fontTest/testfontbug3.html

I tried the blanket, then the item approach.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That isn’t going to work unless you complete the style block. You have:

<style type="text/css">
 #m7 { opacity: 0.999998 !important;
</style>

There is a missing closing curly brace }

Should be:

<style type="text/css">
 #m7 { opacity: 0.999998 !important; }
</style>

But I think some Browsers will assume it is there.

But specifically which of the header texts are you noticing it worst with - I do see that some of the text is gif text which comes with its own problems.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

And another you could try

<style type="text/css">
html {
	-webkit-font-smoothing: antialiased;
}
</style>

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Dave.

I must have messed the closing bracket whilst trying different things, but it was there for most of the time.

Perhaps I’m misunderstanding what happens when an element is ‘fixed in window’, but doing nothing but changing that setting, in the Inspector palette, alters the behaviour of the text.

This test gallery has nothing on it but what you see in this screen-grab movie. As you will also see, changing the setting to ‘fixed in window’ for the container for the top elements, alters the behaviour of the text.

I have no idea where the gif text is coming from. Is this producing it?

and here’s the page:

http://test-2.grantsymon.com/fontTest/fonttest.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I have no idea where the gif text is coming from. Is this producing it?

That was just on one of your previous example pages - not relevant I think.

And if you preview locally in Chrome etc. - what do you see?

My old version of Safari 5.1.1 previews fine.

This is my test page http://deltadesign.co/FW7Test/font-test.html if you reduce the window height you can scroll the page so that the 2 items overlap.

How does it look to you?

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK … I downloaded Chrome and it previews fine. Sigh …

So it’s a rendering bug in Safari?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

A bit of Googling shows that this has been around for a long time and is a webkit bug. So I guess it’s affecting everyone here?

I don’t know if this is the same issue as those that I’ve seen (a few on Stackoverflow) but this screen-recording shows that it is a width percentage problem too.

The problem is using fixed instead of absolute. From there, Safari appears to display 2 problems.

  1. Bold substitute for normal width.
  2. font not antialiasing correctly.

It appears that Chrome has suffered the same issues in the past, but they’ve been fixed.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Oops! Forgot to include the screen-recording link!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

So it’s a rendering bug in Safari?

Yes.

Did you try the font smoothing code I posted a few threads ago?

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes I did and I tried other variations on the same theme that I found in various places, but they made no difference. It’s highly possible that I’m putting it in the wrong place though. :frowning:


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options