You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Dan Dumont (JIRA)" <ji...@apache.org> on 2012/07/19 20:02:34 UTC

[jira] [Resolved] (SHINDIG-1817) Dynamic height algortihm fail to recognize elements with CSS position fixed and absolute to make it forever increasing in height

     [ https://issues.apache.org/jira/browse/SHINDIG-1817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Dumont resolved SHINDIG-1817.
---------------------------------

    Resolution: Won't Fix
    
> Dynamic height algortihm fail to recognize elements with CSS position fixed and absolute to make it forever increasing in height
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SHINDIG-1817
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1817
>             Project: Shindig
>          Issue Type: Bug
>          Components: Javascript 
>    Affects Versions: 2.5.0-beta2
>            Reporter: Henry Saputra
>            Assignee: Dan Dumont
>              Labels: dynamic_height, javascript
>             Fix For: 2.5.0-beta3
>
>
> The new algorithm to calculate dynamic height does not consider elements with position fixed and absolute that are not part of the static flows which could cause forever increase in height.
> Example gadget:
> <Module>
>   <ModulePrefs title="Dynamic Height Size example with fixed position element test gadget">
>     <Require feature="dynamic-height" />
>     <Require feature="dynamic-width" />
>   </ModulePrefs>
>   <Content type="html" view="default"><![CDATA[
>     <head>
>       <style type="text/css">
>         body {
>           padding-bottom: 50px;
>         }
>         #wrap {
>           height:100%
>         },
>         #main {
>           padding-bottom: 100px;
> 	      },
> 	      #footer {
> 	        position: fixed;
> 	        height: 50px;
> 	        clear:both;
>           left: 0;
>           bottom: 0;
> 	      }
>       </style>
>       <script type="text/javascript">
>         gadgets.util.registerOnLoadHandler(function() {
>           gadgets.window.adjustHeight();
>           // setting interval for calling gadgets.window.adjustHeight, this shouldnt
>           // cause the gadget to forever increase in height.
>           window.setInterval(gadgets.window.adjustHeight, 5000);
>         });
>       </script>
>     </head>
>     <body id="mainbody">
>       <div id="wrap">
>         <div id="main">
>           Main canvas content.
> 	      </div>
> 	      <div id="footer">
>           Footer element.
>         </div>
>       </div>
>     </body>
>   ]]></Content>
> </Module>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira