JLynch7 / SlickGrid

A lightning fast JavaScript grid/spreadsheet
https://github.com/jlynch7/SlickGrid/wiki
MIT License
89 stars 76 forks source link

resizeCanvas does not take into account frozen columns #29

Closed vprorok closed 11 years ago

vprorok commented 12 years ago

After window resize, resizeCanvas is, in case there are frozen columns, not properly calculating grid's width.

vprorok commented 11 years ago

I managed to fix this issue with following change:

inside function updateCanvasWidth

line: $viewportTopR.width(viewportW - canvasWidthL);

replaced with: $viewportTopR.width($viewportTopR.parent().width()- canvasWidthL);

JLynch7 commented 11 years ago

Can reproduce this issue with one of examples?

vprorok commented 11 years ago

example12-fillbrowser.html ... this one has problem with height when resizing.... try adding frozen columns and you will see problem with width as well

JLynch7 commented 11 years ago

Please test the latest commit.

vprorok commented 11 years ago

Seems to works fine. Thx