开发者

Flot chart inside jqueryui tab

开发者 https://www.devze.com 2022-12-13 09:38 出处:网络
I\'m using jqueryui to display my page content in tabs. Right now I have only one tab, with a placeholder div inside. This div displays a flot chart, which has a fixed size. Problem is that jqueryui d

I'm using jqueryui to display my page content in tabs. Right now I have only one tab, with a placeholder div inside. This div displays a flot chart, which has a fixed size. Problem is that jqueryui doesn't detect the size of the placeholder div, so my flot graph does not look like it's insi开发者_开发技巧de the tab.

Is it possible to work around this?


Try setting the width and height on your placeholder div to the same width and height that your graph will be. If you need, you can do that dynamically with javascript before you call the $.tabs() function, and it will still work.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号