Jump to content

Recommended Posts

Posted

Hi there!

 

I want to know if the vertical scroll bar is showing, and if is possible to know its width.

 

I am auto calculating the width of the columns and when there is many rows and the grid shows up the veritical scroll bar my calculations goes wrong.

 

Thank you

Posted
Hi eelias.
 
The width of the vertical scroll bar can be found so:
'document.getElementById("'+UniDBGrid1.JSName+'_id").parentNode.offsetWidth - 
document.getElementById("'+UniDBGrid1.JSName+'_id").offsetWidth;'
 

I think you can always reduce to this value in the calculation, regardless of the visibility of scroll...

 

or use grid.headerCt.forceFit = true;

 

UniDBGrid1 - > ExtEvents - > reconfigure

function reconfigure(sender, store, columns, oldStore, the, eOpts){
  sender.headerCt.forceFit=true;
}

Sorry if misunderstood the question.

 

 

Sincerely.
  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...