InteractiveDataDisplay icon indicating copy to clipboard operation
InteractiveDataDisplay copied to clipboard

Figure is misaligned if initialized being inside hidden div

Open dgrechka opened this issue 7 years ago • 1 comments

Open HTML from repro.zip repro.zip Click on "MCMC traces" you will see image

After double-clicking on the plot it refreshes and becomes normal: image

dgrechka avatar Dec 25 '18 17:12 dgrechka

The possible cause for it is in idd.axis.js in updateSize function.

The function relays on div.outerHeight(false) and div.outerWidth(false), some of which can be zero due to hidden parent div.

Thus adaptive height selection for horizontal axis and adaptive width selection in vertical axis fails.

dgrechka avatar Dec 25 '18 17:12 dgrechka