feature(config) add autosize

This commit is contained in:
coderaiser 2013-11-05 09:11:02 +00:00
parent b6b46091f2
commit 55d2fa0d37
2 changed files with 13 additions and 5 deletions

View file

@ -69,7 +69,10 @@ var CloudCmd, Util, DOM;
}
Images.hideLoad();
CloudCmd.View.show(div);
CloudCmd.View.show(div, null, {
autoSize: true
});
});
},

View file

@ -71,9 +71,9 @@ var CloudCmd, Util, DOM, CloudFunc, $;
/**
* function shows FancyBox
*/
this.show = function(pData, pCallBack) {
var lPath, lElement,
lAfterFunc, lFunc;
this.show = function(pData, pCallBack, pConfig) {
var lPath, lElement, lAfterFunc, lFunc, name,
config = {};
if (!Loading) {
Element = $('<div id=view tabindex=0>');
@ -87,7 +87,12 @@ var CloudCmd, Util, DOM, CloudFunc, $;
Config.afterShow = lFunc;
$.fancybox(lElement, Config);
Util.copyObj(Config, config);
for (name in pConfig)
config[name] = pConfig[name];
$.fancybox(lElement, config);
} else {
lPath = CloudFunc.FS + DOM.getCurrentPath();