Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
grid scroll bar column sits outside of grid parent
19/05/2010
18:56
Avatar
macbuoy
Silver Spring, MD
Member
Members
Forum Posts: 24
Member Since:
16/10/2009
sp_UserOfflineSmall Offline

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. 

28/05/2010
10:11
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

29/05/2010
00:06
Avatar
macbuoy
Silver Spring, MD
Member
Members
Forum Posts: 24
Member Since:
16/10/2009
sp_UserOfflineSmall Offline

Tony,

Here is the CSS for that DIV:

.stage_section {
background-color: white;
border-bottom: 1px solid #4C6D89;
border: 1px solid;
border-right: 1px solid #4C6D89;
color: black;
font-size: 14px;
margin: 0px 0px 20px;
width: 99.8%;
}
Do you think the 99.8% is messing me up?
--David
30/05/2010
12:15
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

05/06/2010
00:49
Avatar
macbuoy
Silver Spring, MD
Member
Members
Forum Posts: 24
Member Since:
16/10/2009
sp_UserOfflineSmall Offline

that looks promising. Thanks!

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information