Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/admin_templates/js/forms.js
| Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Line(s) | |||||
| // height will become minimal required (when data height is smaller, then window) | // height will become minimal required (when data height is smaller, then window) | ||||
| h = this.MinHeight; | h = this.MinHeight; | ||||
| } | } | ||||
| h -= ($div.outerHeight() - $div.height()); | h -= ($div.outerHeight() - $div.height()); | ||||
| // alert('h after correction is '+h); | // alert('h after correction is '+h); | ||||
| /* | if ( use_popups() && window.name.match(/[\d]+$/) ) { | ||||
| // use this 2 lines, instead of next 3 lines, when scrolling without popups needed | |||||
| var w = $(window.document.body).outerWidth(false); | |||||
| w -= ($div.outerWidth() - $div.width());*/ | |||||
| window.document.body.style.width = '100%'; | window.document.body.style.width = '100%'; | ||||
| var w = (document.all ? window.document.body.offsetWidth : window.innerWidth); | var w = (document.all ? window.document.body.offsetWidth : window.innerWidth); | ||||
| w -= pos.left + ($div.outerWidth() - $div.width()); | w -= pos.left + ($div.outerWidth() - $div.width()); | ||||
| } | |||||
| else { | |||||
| var w = $(window.document.body).outerWidth(false); | |||||
| w -= ($div.outerWidth() - $div.width()); | |||||
| } | |||||
| scroller_height = this.MinWidth > w ? this.ScrollerH : 0; // width of 1st table in scroll_container is larger, then window width? | scroller_height = this.MinWidth > w ? this.ScrollerH : 0; // width of 1st table in scroll_container is larger, then window width? | ||||
| scroller_width = this.MinHeight > h - scroller_height ? this.ScrollerW : 0; // table height > total height - scroller_height -> vertical scroller is found | scroller_width = this.MinHeight > h - scroller_height ? this.ScrollerW : 0; // table height > total height - scroller_height -> vertical scroller is found | ||||
| scroller_height = this.MinWidth > w - scroller_width ? this.ScrollerH : 0; // table width > total width - scroller_width -> horizontal scroller is found | scroller_height = this.MinWidth > w - scroller_width ? this.ScrollerH : 0; // table width > total width - scroller_width -> horizontal scroller is found | ||||
| var st = document.getElementById('width_status'); | var st = document.getElementById('width_status'); | ||||
| if (st) st.innerHTML = 'minWdith: '+this.MinWidth+' minHeight: '+this.MinHeight+' w: '+w+' h: '+h+' scroll_w: '+scroller_width+' scroll_h: '+scroller_height; | if (st) st.innerHTML = 'minWdith: '+this.MinWidth+' minHeight: '+this.MinHeight+' w: '+w+' h: '+h+' scroll_w: '+scroller_width+' scroll_h: '+scroller_height; | ||||
| ▲ Show 20 Lines • Show All 98 Lines • ▼ Show 20 Line(s) | |||||
| for (var i = 0; i < this.Controls.length; i++) { | for (var i = 0; i < this.Controls.length; i++) { | ||||
| var options = this.Options[this.Controls[i]] | var options = this.Options[this.Controls[i]] | ||||
| if (options['real_height'] < options['min_height']) { | if (options['real_height'] < options['min_height']) { | ||||
| options['real_height'] = options.min_height; | options['real_height'] = options.min_height; | ||||
| used += options.min_height; | used += options.min_height; | ||||
| } | } | ||||
| } | } | ||||
| return used; | return used; | ||||
| }; | }; | ||||
| No newline at end of file | |||||