0

When my iframe's onReadyevent is fired, I draw a flot graph in it (the iframe is inside an ext component). But the graph gets drawn with the wrong spacing (labels are in the wrong place - either to far away from the axis or on the wrong row, both causing those annoying scroll bars to show up). However, the graph redraws itself correctly with the same data whenever the onWindowResize event is fired.

Could something happen AFTER the onReady event that changes the size of the iframe (making the flot graph suddenly the wrong size)? Why would the graph draw incorrectly for the onReady event and not for the onWindowResize event?

I don't think this has anything to do with flot (a JS charting library that works on jQuery) itself...

4

1 に答える 1

2

onLoadを使用できますか?

onReadyの後に読み込まれて寸法が変化する可能性のある[明示的な幅と高さなしで設定された]画像はありますか?

于 2009-07-31T20:11:57.937 に答える