<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="0.91">
    <channel>
        <title>Bug in vertical align action</title>
        <description>The 10 most recently added comments in the topic &quot;Bug in vertical align action&quot;</description>
        <link>http://www.freewaytalk.net/</link>
        <lastBuildDate>Mon, 06 Feb 2012 17:38:24 -500</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Re: Bug in vertical align action</title>
            <link>http://www.freewaytalk.net/thread/view/39447#m_78780</link>
            <description>&lt;p&gt;Yes. THe issue is that internally, Freeway stores the styles applied
to an element as a single string, rather than an object or some other
key:value data structure. I have rewritten the get and set CSS
functions slightly, my versions follow in a Gist.&lt;/p&gt;

&lt;script src=&quot;http://gist.github.com/644134.js&quot;&gt;&lt;/script&gt;

&lt;p&gt;Walter&lt;/p&gt;

&lt;p&gt;On Oct 24, 2010, at 4:20 PM, pems wrote:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Hi everyone
  me again and as usual I know my question will sound a bit dim but
  here goes anyway. If I just want to add an extra style attribute to
  the page div is there a simple way to do it.
  I understand (and have successfully with a lot of help) added things
  using my actions within the HTML tags but I have never tackled
  adding extra style attributes. I have looked at the&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;       function GetCSSAttribute(tag, fieldName, attributeName)
&lt;/code&gt;&lt;/pre&gt;
  
  &lt;p&gt;within the manual  and &amp;#8220;my goodness&amp;#8221; this looks like an enormous
  amount of code just to add 1 attribute, is this the only way?
  If someone could point out, what I need to use so I can add some
  extra style attributes or if there was a simple alternative then
  that would very handy&lt;/p&gt;
  
  &lt;p&gt;Pems  :)&lt;/p&gt;
  
  &lt;hr /&gt;
  
  &lt;p&gt;actionsdev mailing list
  email@hidden
  Update your subscriptions at:
  &lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;p&gt;actionsdev mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>waltd</author>
            <pubDate>Sun, 24 Oct 2010 23:16:46 -500</pubDate>
        </item>
        <item>
            <title>Re: Bug in vertical align action</title>
            <link>http://www.freewaytalk.net/thread/view/39447#m_78777</link>
            <description>&lt;p&gt;Hi everyone&lt;br /&gt;
me again and as usual I know my question will sound a bit dim but here goes anyway. If I just want to add an extra style attribute to the page div is there a simple way to do it.
I understand (and have successfully with a lot of help) added things using my actions within the HTML tags but I have never tackled adding extra style attributes. I have looked at the&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;        function GetCSSAttribute(tag, fieldName, attributeName)        
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;within the manual  and &amp;#8220;my goodness&amp;#8221; this looks like an enormous amount of code just to add 1 attribute, is this the only way?&lt;br /&gt;
If someone could point out, what I need to use so I can add some extra style attributes or if there was a simple alternative then that would very handy&lt;/p&gt;

&lt;p&gt;Pems  :)&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;actionsdev mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>pems</author>
            <pubDate>Sun, 24 Oct 2010 20:20:55 -500</pubDate>
        </item>
        <item>
            <title>Re: Bug in vertical align action</title>
            <link>http://www.freewaytalk.net/thread/view/39447#m_51108</link>
            <description>&lt;p&gt;Peter,&lt;/p&gt;

&lt;p&gt;I have altered the css navigation action to be found here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.freewaytalk.net/thread/view/50746&quot;&gt;http://www.freewaytalk.net/thread/view/50746&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;All I did was comment the offending line and everything works now, must try and find out what the previous code did to the body tag to screw everything up though.&lt;/p&gt;

&lt;p&gt;regards,&lt;/p&gt;

&lt;p&gt;mmull&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;actionsdev mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>mmull</author>
            <pubDate>Thu, 09 Apr 2009 23:53:56 -500</pubDate>
        </item>
        <item>
            <title>Re: Bug in vertical align action</title>
            <link>http://www.freewaytalk.net/thread/view/39447#m_49744</link>
            <description>&lt;p&gt;Peter,&lt;/p&gt;

&lt;p&gt;Grab this file and see what happens:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://mmuller.vndv.com/css-va.zip&quot;&gt;http://mmuller.vndv.com/css-va.zip&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you remove the css menus action it centres vertically.&lt;/p&gt;

&lt;p&gt;If you remove the vertical align action the menu works.&lt;/p&gt;

&lt;p&gt;The error is from the css menus action, so not sure if there is anything you can do to fix this unfortunately&amp;#8230;&lt;/p&gt;

&lt;p&gt;Best Regards,&lt;/p&gt;

&lt;p&gt;mmull&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;actionsdev mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>mmull</author>
            <pubDate>Tue, 17 Mar 2009 22:44:30 -500</pubDate>
        </item>
        <item>
            <title>Re: Bug in vertical align action</title>
            <link>http://www.freewaytalk.net/thread/view/39447#m_49446</link>
            <description>&lt;p&gt;@DeltaDave:&lt;/p&gt;

&lt;p&gt;Nice to here someone is actually using my patch.&lt;/p&gt;

&lt;p&gt;Thanks for pointing out the missing slash. The formatter had eaten it up unfortunately. ;-)&lt;/p&gt;

&lt;p&gt;@mmull:&lt;/p&gt;

&lt;p&gt;I&amp;#8217;d bet, the error appears also in the original vertical-align  action. Right?&lt;/p&gt;

&lt;p&gt;You can send me a to a single page stripped down Freeway document, where the error occurs, and I can have a look, when I have time. But no promise that I can fix it.&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;actionsdev mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>Peter Gutbrod</author>
            <pubDate>Fri, 13 Mar 2009 10:39:16 -500</pubDate>
        </item>
        <item>
            <title>Re: Bug in vertical align action</title>
            <link>http://www.freewaytalk.net/thread/view/39447#m_49342</link>
            <description>&lt;p&gt;Edit to the above&amp;#8230;&lt;/p&gt;

&lt;p&gt;the error and code appear in the css menus action that ships with Freeway, is there a way to get around this do you think ?&lt;/p&gt;

&lt;p&gt;mm&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;actionsdev mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>mmull</author>
            <pubDate>Wed, 11 Mar 2009 20:43:26 -500</pubDate>
        </item>
        <item>
            <title>Re: Bug in vertical align action</title>
            <link>http://www.freewaytalk.net/thread/view/39447#m_49341</link>
            <description>&lt;p&gt;One small caveat to using this is it breaks the page body tags and therefore if you try to use &amp;#8216;css menus&amp;#8217; on a vertically centred page the app errors with the following message:&lt;/p&gt;

&lt;p&gt;&amp;#8220;bodyTag has no properties&amp;#8221;&lt;/p&gt;

&lt;p&gt;and highlights this line:&lt;/p&gt;

&lt;p&gt;fwParameters.bodyTag.fwValue = bodyTag[0];&lt;/p&gt;

&lt;p&gt;any help would be greatly appreciated&lt;/p&gt;

&lt;p&gt;mm&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;actionsdev mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>mmull</author>
            <pubDate>Wed, 11 Mar 2009 20:41:12 -500</pubDate>
        </item>
        <item>
            <title>Re: Bug in vertical align action</title>
            <link>http://www.freewaytalk.net/thread/view/39447#m_49260</link>
            <description>&lt;p&gt;I have just done a small update to a site last fiddled with in FW4 and couldn&amp;#8217;t understand why some of my Vertically Aligned pages were giving me grief. Until I found this thread of course and Peter&amp;#8217;s version has done the trick for me.&lt;/p&gt;

&lt;p&gt;But be careful as the last line&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;page-action&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;should read&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;/ page-action&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But with no space between the &amp;#8216;/&amp;#8217; and &amp;#8216;page-action&amp;#8217;&lt;/p&gt;

&lt;p&gt;The Web forum does muck with this.&lt;/p&gt;

&lt;p&gt;Maybe this could be added to Actions Forge Peter.&lt;/p&gt;

&lt;p&gt;David&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;actionsdev mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>DeltaDave</author>
            <pubDate>Wed, 11 Mar 2009 00:08:23 -500</pubDate>
        </item>
        <item>
            <title>Re: Bug in vertical align action</title>
            <link>http://www.freewaytalk.net/thread/view/39447#m_39520</link>
            <description>&lt;p&gt;The formatter does its best, but for something this long and
involved, you might want to use Pastie: &lt;a href=&quot;http://pastie.org&quot;&gt;http://pastie.org&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Walter&lt;/p&gt;

&lt;p&gt;On Sep 11, 2008, at 8:30 AM, Peter Gutbrod wrote:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Hmm, the parser seems to have its problems, even with the 4 spaces
  thing.&lt;/p&gt;
  
  &lt;p&gt;Peter&lt;/p&gt;
  
  &lt;hr /&gt;
  
  &lt;p&gt;actionsdev mailing list
  email@hidden
  Update your subscriptions at:
  &lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;p&gt;actionsdev mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>waltd</author>
            <pubDate>Thu, 11 Sep 2008 12:51:37 -500</pubDate>
        </item>
        <item>
            <title>Re: Bug in vertical align action</title>
            <link>http://www.freewaytalk.net/thread/view/39447#m_39517</link>
            <description>&lt;p&gt;Hmm, the parser seems to have its problems, even with the 4 spaces thing.&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;actionsdev mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>Peter Gutbrod</author>
            <pubDate>Thu, 11 Sep 2008 12:30:53 -500</pubDate>
        </item>
        <item>
            <title>Bug in vertical align action</title>
            <link>http://www.freewaytalk.net/thread/view/39447</link>
            <description>&lt;p&gt;I found a bug in the vertical align action, when used together with horizontal page centering:&lt;/p&gt;

&lt;p&gt;It tries to remove the &amp;#8220;height&amp;#8221; parameter from the pageDiv tag to work with Safari. But the pageDiv tag in my FW 5 output has only a &amp;#8220;min-height&amp;#8221; parameter. That leaves to an invalid &amp;#8220;min-&amp;#8221; parameter.&lt;/p&gt;

&lt;p&gt;I simply commented out the following line in the action:&lt;/p&gt;

&lt;p&gt;// pageDiv.style = RemoveStyleParameter(pageDiv.style,&amp;#8221;height&amp;#8221;); // Height stuffs up Safari (applied if page horizontally aligned as well)&amp;#8230;&lt;/p&gt;

&lt;p&gt;Now it works together with center page aligning. The min-height parameter doesn&amp;#8217;t seem to stuff up Safari.&lt;/p&gt;

&lt;p&gt;There is still an issue with layered item. To do proper vertical aligning it needs at least one non layered item at the bottom of the layout. What it does is to place a table within the PageDiv tag thus preventing the height of the PageDiv to collapse.&lt;/p&gt;

&lt;p&gt;To work on layered items without the help of this non-layered item, the min-height parameter of the PageDiv tag has to be replaced with the height parameter set to the absolute height of the PageDiv.&lt;/p&gt;

&lt;p&gt;To calculate the height of the PageDiv currently I only can iterate through all div tags enclosed by the PageDiv to look for the top and height parameters. If anyone knows an easier way to calculate the height, please drop a line.&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;actionsdev mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>Peter Gutbrod</author>
            <pubDate>Tue, 09 Sep 2008 11:08:49 -500</pubDate>
        </item>
    </channel>
</rss>

