Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix resize-chain for Tabulator in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jul 28, 2014
1 parent 5f7d4a1 commit d7154dd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/res/js/ajaxplorer.js

Large diffs are not rendered by default.

Expand Up @@ -863,7 +863,11 @@ Class.create("Ajaxplorer", {
},

getPluginConfigs : function(pluginQuery){
var properties = XPathSelectNodes(this._registry, 'plugins/'+pluginQuery+'/plugin_configs/property | plugins/*[@id="core.'+pluginQuery+'"]/plugin_configs/property | plugins/*[@id="'+pluginQuery+'"]/plugin_configs/property');
var xpath = 'plugins/*[@id="core.'+pluginQuery+'"]/plugin_configs/property | plugins/*[@id="'+pluginQuery+'"]/plugin_configs/property';
if(pluginQuery.indexOf('.') == -1){
xpath = 'plugins/'+pluginQuery+'/plugin_configs/property |' + xpath;
}
var properties = XPathSelectNodes(this._registry, xpath );
var configs = $H();
for(var i = 0; i<properties.length; i++){
var propNode = properties[i];
Expand Down
Expand Up @@ -452,6 +452,9 @@ Class.create("AjxpTabulator", AjxpPane, {
*/
resize : function(size, loop){
if(!this.selectedTabInfo || !this.htmlElement) return;
if(this.options.fit && this.options.fit == 'height'){
fitHeightToBottom(this.htmlElement, this.options.fitParent);
}
if(this.htmlElement.hasClassName('horizontal_tabulator')){
var tabContainer = this.htmlElement.down('div.tabulatorContainer');
fitHeightToBottom(tabContainer, null, this.options.fitMarginBottom);
Expand All @@ -461,7 +464,7 @@ Class.create("AjxpTabulator", AjxpPane, {
var ajxpObject = this.getAndSetAjxpObject(this.selectedTabInfo);
if(ajxpObject && !ajxpObject.fullScreenMode){
var nodeElement = $(this.htmlElement).down("#"+this.selectedTabInfo.element);
fitHeightToBottom(nodeElement, null, this.options.fitMarginBottom);
fitHeightToBottom(nodeElement, this.htmlElement, this.options.fitMarginBottom);
ajxpObject.resize(nodeElement?nodeElement.getHeight():this.htmlElement.getHeight());
var left ;
var total = 0;
Expand Down

0 comments on commit d7154dd

Please sign in to comment.