Forum
18:56
16/10/2009
The problem seems to be that, when the browser scroll-bar is present, the initial load of the grid results in the grid scroll-bar sitting outside of the grid parent element. My grids all sit inside a parent DIV which provides an external title bar and external buttons to the grid.
See the video for a demonstration in Chrome (I have reproduced the problem in IE8, Firefox and Chrome).
http://screencast.com/t/ZjdkYjQ4
I'm Using jqGrid 3.6.5
The video begins showing a grid after initial load with few grid items (no grid scroll-bar), no browser scroll-bar, autoWidth:true and shrinkToFit:true
@ 10 seconds: I resize the browser to introduce its vertical scroll bar
@ 20 seconds: I demonstrate my custom window.resize setGridWidth() tracking
@ 26 seconds: I reload the page with the same grid and demonstrate that the presence of the browser scroll-bar seems to cause the last grid column to overhang the parent element.
@ 38 seconds: I load a page with enough grid items to introduce the grid scroll-bar and demonstrate again that the presence of the browser scroll-bar seems to cause the grid scroll-bar column to overhang the parent element.
@ 47 seconds: I demonstrate again my custom window.resize setGridWidth() tracking AND how hitting setGridWidth() easily pulls the grid scroll-bar back inside the parent element.
@ 49 seconds: I eliminate the browser scroll-bar
@ 54 seconds: I reload the page and show the problem is gone when the browser scroll-bar is gone
@ 1 minute 3 seconds: I repeat most of the demo.
10:11
Moderators
30/10/2007
Hello,
I see the problem. Could you please give me a info about the parent div – i.e the div where the grid is inside.
Also I'm interested on the style and css definitions. I think that the problem is in this div.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
00:06
16/10/2009
12:15
Moderators
30/10/2007
Hello,
Initially we use innerWidth to determine the width of the parent element.
By definition innerWidth has the following:
Returns the width of the browser's client area, including the vertical scrollbar, if rendered.
http://help.dottoro.com/ljkfqbqj.php
It seems like we should use the clientWidth
Will test this
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
40 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66