0
A
回答
0
它实际上原来是我使用的jQuery 1.2.6的事实,我不得不升级到jQuery的1.3.2解决了我的问题。
谢谢您的意见Ace Trajkov
1
如果我假设正确,您正在使用jScrollPane和滚动容器超出窗口尺寸窗口调整大小。代码中有一个内容和容器的宽度和高度计算错误。基本上,你需要重新分配窗口大小的宽度和高度。这是一个工作示例:
var oldWindowHeight = $(window).height();
var oldWindowWidth = $(window).width();
$(function() {
$('.tdMiddleRightContent').each(function() {
$(this).jScrollPane({
showArrows: true,
hideFocus: true
});
var api = $(this).data('jsp');
var throttleTimeout;
$(window).bind('resize', function() {
var newWindowHeight = $(window).height();
if ((newWindowHeight - oldWindowHeight) < 0) {
$(".jspContainer").height($(".jspContainer").height() + (newWindowHeight - oldWindowHeight));
}
var newWindowWidth = $(window).width();
if ((newWindowWidth - oldWindowWidth) < 0) {
$(".jspContainer").width($(".jspContainer").width() + (newWindowWidth - oldWindowWidth));
}
if ($.browser.msie) {
if (!throttleTimeout) {
throttleTimeout = setTimeout(function() {
api.reinitialise();
throttleTimeout = null;
}, 50);
}
} else {
api.reinitialise();
}
oldWindowHeight = $(window).height();
oldWindowWidth = $(window).width();
});
});
});
相关问题
- 1. CSS jQuery Scrollpane问题
- 2. jquery scrollpane auto reinitialise width;
- 3. jquery scrollpane vertical bar height
- 4. jquery scrollpane不工作
- 5. JavaFX ScrollPane样式
- 6. JavaFx 8 ScrollPane removeListener
- 7. scrollpane不工作
- 8. Java Scrollpane和JTextArea
- 9. Java Textarea ScrollPane
- 10. JTextArea中的ScrollPane
- 11. 定制的ScrollPane
- 12. Java ScrollPane/JPanel
- 13. Papervision3D中的ScrollPane
- 14. JFreeChart in scrollpane
- 15. GridBagLayout和ScrollPane
- 16. libgdx scrollpane不显示
- 17. LibGDX Draw Scrollpane WITHOUT Stage
- 18. 比Scrollpane大的JPanel
- 19. libgdx ScrollPane - 不滚动?
- 20. 自定义AWT ScrollPane
- 21. libGDX ScrollPane使用WidgetGroup而不是Table作为ScrollPane小部件?
- 22. 从ScrollPane拖动到ScrollPane之外的目标?
- 23. Scrollpane不工作,而使用jquery淡入淡出
- 24. jquery scrollpane ms ajax updatepanel在回帖后不起作用
- 25. jQuery ScrollPane只是因为某种原因不工作
- 26. jQuery j scrollpane自动鼠标移动滚动
- 27. scrollPane内部的MovieClip AS3
- 28. 在JavaFX8的scrollpane内绘图
- 29. JavaFX ScrollPane边框和背景
- 30. ScrollPane内的GridbagLayout Java Swing