eelias Posted December 18, 2013 Share Posted December 18, 2013 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 19, 2013 Share Posted December 19, 2013 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. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.