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_Related Related Topics sp_TopicIcon
UI quirk in IE
13/10/2010
00:46
Avatar
jakemonO
Member
Members
Forum Posts: 16
Member Since:
20/08/2010
sp_UserOfflineSmall Offline

I'm not sure if this a bug or something I'm doing wrong, but in some circumstances in IE8, when selecting a row in the grid, the grid "hops" down a little and I get a whitespace line above the TH row in the grid. I cannot inspect select or otherwise mark this phenomena in IE to determine where exactly in the DOM it comes from. I did notice a tiny little mark appearing in the upper left corner of the grid (right where the rounded edge is in Firefox) under the same circumstances and suspected that the two behaviors were linked to the same underlying cause, just manifesting differently in the two browsers.

For the record, the IE problem is the only one I'm concerned about both because it's clearly a noticeable quirk and because the solution I'm building will run primarily in IE.

screenshot of quirk in IEImage Enlarger

Using Firefox, I was able to track the stray pixel to a new element being inserted as the first child of "_gview":

<span tabindex="0" style="width: 0px; height: 0px; background-color: black;"><span id="_kn" style="width: 0px; height: 0px; background-color: grey;" tabindex="-1"></span></span>

I don't know what this element is or does, but I do know that if I destroy it the quirk dissapears. I use $('#_kn').parent().remove() to to the dirty deed because there's no way for me to query for the parent element (hence searching for its child and then jQuerying the parent) Can someone tell me what the purpose of this span is? Can I prevent it from coming up in the first place? Can I prevent it from displaying at all using a preventative measure such as a CSS rule (I don't see how if there's no tag or class…) Also, dor some reason this behavior is not consistent and I have not been able to create a new page that exhibits it, although my existing page always consistently exhibits this visual quirk.

I'm using jqGrid 3.7.2
jQueryUI 1.8.2
jQuery1.4

Many thanks in adv. for any insight into this issue

13/10/2010
18:25
Avatar
jakemonO
Member
Members
Forum Posts: 16
Member Since:
20/08/2010
sp_UserOfflineSmall Offline

SOLUTION (?)

I don't know why the visual bug manifestes  itself selectively on certain pages in IE but not others, but if I change line 349 in grid.celledit.js to

var selection = $("<span style='width:0px;height:0px;background-color:black;display: none;' tabindex='0'><span tabindex='-1' style='width:0px;height:0px;background-color:grey' id='"+$t.p.knv+"'></span></span>"),i, kdir;

The problem goes away. The corresponding place in the compressed file is in  line 356.

Is there any unintended side effect that I need to be concerned with? Should this be perhaps a patch for anyone else who may have experienced this problem?

23/10/2010
19:47
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

This resolve the problem just in your particular case. Doing this in the demo prevent always key navigation.

Please check your CSS.

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

24/10/2010
16:12
Avatar
jakemonO
Member
Members
Forum Posts: 16
Member Since:
20/08/2010
sp_UserOfflineSmall Offline

I combed the CSS for 2 days and was unable to find the root cause of the quirk. All the CSS generated by the errant span is inline, what more can I do? (this isn't a complaint, it's a serious request for help/assistance/advice)

29/10/2010
22:14
Avatar
jakemonO
Member
Members
Forum Posts: 16
Member Since:
20/08/2010
sp_UserOfflineSmall Offline

tony said:

Hello,

This resolve the problem just in your particular case. Doing this in the demo prevent always key navigation.

Please check your CSS.

Kind Regards

Tony


the problem apperas to be related to the DOCTYPE declaration. If I don't have it on my page, weirdness ensues as documented her and also with jsTree. Odd. See

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
22 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