How is the flash embed height generated?
I noticed that its too big - that it leaves big margins.
For example: font height of 30px gives a flash height of 46px!!
(Tried to make fixes in the CSS - but has no effect - so I suspect its the embed code)

thanks.

Comments

nextpulse’s picture

The fix is to add the following:

plugins/sifr.inc
Line 378:

padding:0px;
margin:0px;

Not sure if its right - but it solved my issue- excessive padding.

sun’s picture

Status: Active » Closed (works as designed)

a) This is an issue with the sIFR library itself. The CSS generated by the module just does what the original stylesheet of the library would do.

b) You can apply the same styles in your theme, no need to alter the module.

mash200’s picture

i have a similar problem.
it's not the CSS, but the height of the flash file generated by sifr itself. it seems there's a tuneheight parameter which can combat this, but i've no idea where to put it! sifr-config.js seems the likely place, but i've not used that file in my installation.

i'm using drupal 6.16 and sifr 3 r436.

i've installed using sifr.css and sifr.js only. i had an earlier problem with fonts not rendering when i exported them from flash CS3, but running them through sifr generator solved that one! don't know if both issues are connected tho.

the test site is at :

http://www.madebymash.com/fullstop/creative

many thanks!

mash200’s picture

Title: Flash height? » Flash height in sifr 3
mash200’s picture

Status: Closed (works as designed) » Active
mash200’s picture

Status: Active » Fixed

after an AGE of searching, altering and experimenting i've found the solution:

alter the sifr-rules.js file written by drupal when creating rules. it lives in /sites/default/files/render
add the following code:

"offsetTop": "-10px", "tuneHeight": "-25px",

offsetTop moves the text up or down in the flash container. tuneHeight adjusts the size of the container. change the values to suit your needs.

WARNING: every time you create a new rule or edit an existing one, drupal will overwrite the file. save a copy and go back in and alter again!

hope this saves someone the trouble of searching for a solution. sifr is FANTASTIC, but the documentation is appalling. the worst i've come across.having said that, during my research i've noticed Mark Wubben the creator of sifr3 does seem to go to a huge amount of effort solving folk's issues. good work!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.