sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 39899 - http://anonsvn.icesoft.org/repo / icemobile / trunk / icemobile / jsf / components / component / resources / org.icefaces.component.util / component.js
Unified Diff View - component.js
/icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.util/component.js @ revision 39898
/icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.util/component.js @ revision 39899
@@ -2951,6 +2951,10 @@                     var body = window.document.body || null;                     if (body == null) return;                     if (leftNode && rtNode) { +                        var tabsetsToAdjustFor = document.querySelectorAll('.mobi-tabset').length +                            - leftNode.querySelectorAll('.mobi-tabset').length +                            - rightNode.querySelectorAll('.mobi-tabset').length; +                        var pagePanelFootersToAdjustFor = document.querySelectorAll('.mobi-pagePanel-footer');                         if (window.innerHeight) {                             height = window.innerHeight;                         } else if (body.parentElement.clientHeight) { @@ -2961,8 +2965,13 @@                             }                         }                         if (height > 0) { -                            var leftHeight = height - leftNode.offsetTop; -                            var rightHeight = height - rtNode.offsetTop; +                            var leftHeight = height - leftNode.offsetTop - (40*tabsetsToAdjustFor); +                            var rightHeight = height - rtNode.offsetTop - (40*tabsetsToAdjustFor); +                            for(var i = 0 ; i < pagePanelFootersToAdjustFor.length ; i++ ){ +                                var footerHeight = pagePanelFootersToAdjustFor[i].offsetHeight; +                                leftHeight -= footerHeight; +                                rightHeight -= footerHeight; +                            }                             if( leftHeight > 0 ){                                 leftNode.style.height = "" + leftHeight + "px";                             }


feed icon

sventon 2.5.1