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