Gridweb_viewpanel is not always visible

Thread Link:


This Topic is created by shakeel.faiz using the Email to Topic plugin.

@lswe

Thanks for considering Aspose.Cells for GridWeb.

Actually, this is a new feature requirement, that we could make size of GridWeb always compatible with browser size.

We’ve added resize() function.

Suppose jQuery is already included in the page.

Then your code can go like this:

function doSomething() { 
	// alert("I'm done resizing for the moment"); 
	
	$("#MainContent_GridWeb1")[0].resize(); 
}; 

var resizeTimer; 
$(window).resize(function () { 
	clearTimeout(resizeTimer); 
	resizeTimer = setTimeout(doSomething, 100); 
});

20-Jun-acwmain.zip (57.6 KB)

Please try the updated acwmain.js file at your end and let us know your feedback. You can download it from the above link (i.e. 20-Jun-acwmain.zip)

@lswe

Thanks for using Aspose APIs.

Please download and try the following fix and let us know your feedback.

Hello,
Thank you for your help.
That’s work fine.
My grid is resize correctly.
And the panel is always on ths screen.

But now i have a new problem.

When i use the scrollbar to go on the right of the grid.

This javascript function, in acwmain.js, make me an issue :

var DataCacheContent={createNew:function©{var cat={};cat.gridwebid=c;cat.init=function(){var headcontent=document.getElementById(cat.gridwebid+"_leftTab").children[1];

The web debug give me the following error
“children” is null or empty.

can you show us the specific steps on how to reproduce this issue.
for example:

  1. click on to select “C3” worksheet
  2. vsbar scroll to bottom
    3.vsbar scroll up to 1223
    4 hsbar scroll to right 800.
    here you can track vsbar/hsbar position by type the below command line in console of browser:
    for vsbar
    document.getElementById(“MainContent_GridWeb1”).vsBar.scrollTop
    for hsbar
    document.getElementById(“MainContent_GridWeb1”).hsBar.scrollLeft
    we need the position info to reproduce this issue.

I have the problem when I use the horizontal scrollbar to go to the right

@lswe

This is actually a New Issue. We are afraid, it is hard for us to replicate it. So, @peter.zhou requested you to provide the exact steps like

1 - Do this
2 - Then Do this
3 - Then Do this. etc.

Once, we know the exact steps to reproduce this issue, it will be easier for us to replicate and fix the issue. Thanks for your cooperation in this regard and have a good day.

The issues you have found earlier (filed as CELLSNET-45434) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by Amjad_Sahi

The issues you have found earlier (filed as CELLSNET-45434) have been fixed in this update.