在Firefox中将Sitecore内容树滚动到顶部 [英] Sitecore Content tree scroll to top in Firefox
本文介绍了在Firefox中将Sitecore内容树滚动到顶部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我展开Sitecore内容树时,当内容树的垂直滚动条出现时,如果我向下滚动并选择树底部的一个项目,它会滚动到顶部。 这只发生在Firefox,IE10,IE9,Chrome中,它工作得很好。 我最近升级了Sitecore。有没有人遇到过类似的问题?请帮帮忙!
Sitecore.NET 6.6.0(130404版)
Firefox版本-21、22
推荐答案
感谢Sitecore支持,找到了该问题,
该问题是由于Fixefox在某些属性更改后立即刷新HTML控件造成的。选择一个项目后,火狐的静电控件会出现一个内容树面板s width is changed and as a result it is redrawn. Developed workaround forbids changing of the controls
大小(类似于内容树)。后果可能是在Firefox中不正确地调整窗口大小(更改浏览器窗口的高度)。要实施解决方法,请将路径"WebsitesitecrehellControlsGecko.js"下的词典替换为附加的且清除的浏览器缓存。请将结果通知我们。
scBrowser.prototype.resizeFixsizeElements = function() {
var form = $$("form")[0];
if (!form) {
return;
}
if (!this.isFirefox)
{
this.fixsizeElements.each(function (element) {
if (!element.hasClassName('scFixSizeNested')) {
element.setStyle({ height: '100%' });
}
});
var maxHeight = 0;
var formChilds = form.childNodes;
for (var i = 0; i != formChilds.length; i++) {
var elementHeight = formChilds[i].offsetHeight;
if (elementHeight > maxHeight) {
maxHeight = elementHeight;
}
}
var formHeight = form.offsetHeight;
this.fixsizeElements.each(function (element) {
var height = element.hasClassName('scFixSizeNested')
? (form.getHeight() - element.scHeightAdjustment) + 'px'
: (element.offsetHeight - (maxHeight - formHeight)) + 'px';
element.setStyle({ height: height });
});
}
/* trigger re-layouting to fix the firefox bug: table is not shrinking itself down on resize */
scGeckoRelayout();
}
这篇关于在Firefox中将Sitecore内容树滚动到顶部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文