[SOLVED] Widget - Resizing Javascript Widget in the container

Answered
0
0

Hi.

I´m using Grapecity SpreadJS with a widget and have a problem that I couldn´t solve; the javascript component (spreadJs) doesn’t  resize after the container resizes (or the page/form).
How could I resolve this behaiver ?

Follow an application (maximize the browser window, them back to the original size, change the windows size, etc.) and repair the the sheets tabs sometimes disapears … and sometimes refresh an they are displayd.

I atached some pictures to show the behaiver …

It happens with WiseJ 1.5, 2.0, 2.1 and 2.2… using Windows 10 / Visual Studio 2019.

Regards

Marcelo Blank

  • You must to post comments
Best Answer
0
0

Hi Marcelo!

I modified your project so the widget resizes when the browser resizes.

You were close, you just needed to call “spreadsheet.refresh()”. I always find it helpful to explore the API of the library and search Stack Overflow for people with the same issue :-).

https://help.grapecity.com/spread/SpreadSheets12/webframe.html#SpreadJS~GC.Spread.Sheets.Workbook~refresh.html

Please let me know if you have any more questions!

Best regards,

Levie

  • You must to post comments
0
0

Hi Levie

Thanks for your attention … and for the solution … Save the project !!!

Best Regards !!!

 

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.