taborlab / Iris

The Light Program Interface
BSD 3-Clause "New" or "Revised" License
12 stars 2 forks source link

Plate view is squished #130

Closed SynbioLucas closed 9 years ago

SynbioLucas commented 9 years ago

Problem is with canvas, as far as I can tell.

When canvas.height is fixed (and not set by canvas.offsetHeight), things seem to look good, except the plate doesn't resize.

Could possibly be a problem with the CSS (@felixekn) , though canvas isn't specifically mentioned there.

SynbioLucas commented 9 years ago

More details about this strange bug:

When the page is loaded, the canvas offsetWidth and offsetHeight parameters seem to be correct (for me, they're 1429 x 715). But when any device is selected or well view / plate view toggled, only the offsetHeight changes to something way too small (me: 1429 x 150).

As far as I can tell, the canvas isn't really manipulated much in the javascript; nothing that should cause this. No idea what's going on.

SynbioLucas commented 9 years ago

More evidence that the canvas CSS / position is messed up... capture

BrianLandry commented 9 years ago

Plate and well view both work now and the problem is still present