jQuery UI布局调整窗格大小不会刷新其余部分 [英] jQuery UI Layout resize a pane does not refresh the rest

查看:146
本文介绍了jQuery UI布局调整窗格大小不会刷新其余部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在东窗格上创建了​​一个jqPlot.然后,我更改窗格的大小以为图表留出足够的空间.但是,布局的某些部分似乎根本没有刷新.如何通知其余的布局并使其刷新?预先感谢.

I created a jqPlot on the east pane. And I change the size of the pane to allow enough space for the chart. However, seems some part of the layout did not get refreshed at all. How do I notify the rest of the layout and make it refresh? Thanks in advance.

推荐答案

只需使用sizePane来让您的布局知道您刚刚调整了其大小.

Simply use sizePane to let your layout know you just resized it.

var your_layout = jQuery("#your_container").layout({...});
...
jQuery("#RightPane").width('400px');
your_layout.sizePane("east", 400);

原始答案来自 https: //groups.google.com/forum/?fromgroups#!topic/jquery-ui-layout/u6BsKaArFNY

这篇关于jQuery UI布局调整窗格大小不会刷新其余部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆