Discussion Forum: Thread 174988

 Author: lovaquero View Messages Posted By lovaquero
 Posted: Aug 21, 2014 12:09
 Subject: Store View Tabs Missing [SOLUTION]
 Viewed: 174 times
 Topic: Suggestions
 Status:Discarded
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

lovaquero (2128)

Location:  USA, Indiana
Member Since Contact Type Status
Jan 29, 2009 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store Closed Store: Lo's Parts & Pieces
(Below is the solution to fix the missing tabs problem that currently exists
on Bricklink. It is a copy of the message I sent to admin. Posting it here for
more visibility. It took me longer to make the images and type the note explaining
the solution than it took to find the problem...)

The root cause is directly related to the addition of the 'link' that
switches the pages from Engling Chinese. It forces the HTML table to take
up more space than is necessary, thus pushing the table the contains the tabs
out of the viewable area. The images show the code - it is a true (and badly
done) hack.

Anyway, enough commenaty, here is the fix:

Bricklink Developers & Admin -

Attached is an image detailing the a solution that will correct the tab rendering
(hidden tabs) problem experienced on certain browsers. The problem is a rendering
difference between browsers related to how they interpret and implement HTML/CSS.

------------------------------------------------
The Root Cause is a combination of the following:
------------------------------------------------
1 - HTML4 v HTML5 support on BL (related to Splash page problems as well)
2 - Old ASP framework code v Modern HTML/CSS standards
3 - A really bad code hack to provide the link to switch to Chinese BL (I mean
no offence - there is no other way to describe it)
4 - Insuffient testing before release.

--------
Code Fix:
--------

#1 - Change the table tag's CELLPADDING attibute from CELLPADDING="5" to
CELLPADDING="0" (It is not needed, but the 10px vertical pixels it frees up are
needed

#2 - ADD "margin:0;padding:0;" to the style attribute of the UL tag utilized
to implement the Chinese language switch (most browsers will automatically do
this, others will not until forced to. This will stop the parent table from
pushing the tabs out of the viewable space in the top frame.

#3 - Add VALIGN="TOP" to the TD tag that wraps the section containing the Store
flags. This will force the flag images to the top of the table, similar to what
is done with the BL logo

Another temp solution is to set SCROLLING="YES" for the FRAME that loads the
store banner and tabs. This would also allow folks to atleast scroll down the
tabs

The Permenant solution is to fix the code hack used to implement the Chinese
language page link. It is improperly implemented - you shouldn't be using
UL LI to create the script link, and there are better ways to align the link
beyond using 10x not-breaking spaces...

Thank you
Rodney Pearson
Lovaquero
 


 Author: lovaquero View Messages Posted By lovaquero
 Posted: Aug 21, 2014 12:17
 Subject: Re: Store View Tabs Missing [SOLUTION]
 Viewed: 61 times
 Topic: Suggestions
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

lovaquero (2128)

Location:  USA, Indiana
Member Since Contact Type Status
Jan 29, 2009 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store Closed Store: Lo's Parts & Pieces
A (hopefully) more readable image of the code mentioned above.

Apologies on the typos in the OP - I am used to my customize code editor, and
not so much to document creation.
 
 Author: QA_Ryan View Messages Posted By QA_Ryan
 Posted: Aug 21, 2014 12:21
 Subject: Re: Store View Tabs Missing [SOLUTION]
 Viewed: 77 times
 Topic: Suggestions
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

QA_Ryan (3)

Location:  USA, Catalonia
Member Since Contact Type Status
Jun 25, 2014 Contact Member Seller
No Longer RegisteredNo Longer Registered
Store Closed Store: Ryans Brick Boutique
No Longer Registered
In Suggestions, lovaquero writes:
  A (hopefully) more readable image of the code mentioned above.

Apologies on the typos in the OP - I am used to my customize code editor, and
not so much to document creation.

Interesting, thanks Rodney! I forwarded this to the development team.
 Author: picabo View Messages Posted By picabo
 Posted: Aug 21, 2014 12:24
 Subject: Re: Store View Tabs Missing [SOLUTION]
 Viewed: 81 times
 Topic: Suggestions
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

picabo (2037)

Location:  USA, Rhode Island
Member Since Contact Type Status
Jan 18, 2010 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store Closed Store: Abby's Spare Parts
In Suggestions, lovaquero writes:

Thanks Rodney.

Pam


  (Below is the solution to fix the missing tabs problem that currently exists
on Bricklink. It is a copy of the message I sent to admin. Posting it here for
more visibility. It took me longer to make the images and type the note explaining
the solution than it took to find the problem...)

The root cause is directly related to the addition of the 'link' that
switches the pages from Engling Chinese. It forces the HTML table to take
up more space than is necessary, thus pushing the table the contains the tabs
out of the viewable area. The images show the code - it is a true (and badly
done) hack.

Anyway, enough commenaty, here is the fix:

Bricklink Developers & Admin -

Attached is an image detailing the a solution that will correct the tab rendering
(hidden tabs) problem experienced on certain browsers. The problem is a rendering
difference between browsers related to how they interpret and implement HTML/CSS.

------------------------------------------------
The Root Cause is a combination of the following:
------------------------------------------------
1 - HTML4 v HTML5 support on BL (related to Splash page problems as well)
2 - Old ASP framework code v Modern HTML/CSS standards
3 - A really bad code hack to provide the link to switch to Chinese BL (I mean
no offence - there is no other way to describe it)
4 - Insuffient testing before release.

--------
Code Fix:
--------

#1 - Change the table tag's CELLPADDING attibute from CELLPADDING="5" to
CELLPADDING="0" (It is not needed, but the 10px vertical pixels it frees up are
needed

#2 - ADD "margin:0;padding:0;" to the style attribute of the UL tag utilized
to implement the Chinese language switch (most browsers will automatically do
this, others will not until forced to. This will stop the parent table from
pushing the tabs out of the viewable space in the top frame.

#3 - Add VALIGN="TOP" to the TD tag that wraps the section containing the Store
flags. This will force the flag images to the top of the table, similar to what
is done with the BL logo

Another temp solution is to set SCROLLING="YES" for the FRAME that loads the
store banner and tabs. This would also allow folks to atleast scroll down the
tabs

The Permenant solution is to fix the code hack used to implement the Chinese
language page link. It is improperly implemented - you shouldn't be using
UL LI to create the script link, and there are better ways to align the link
beyond using 10x not-breaking spaces...

Thank you
Rodney Pearson
Lovaquero
 Author: StarBrick View Messages Posted By StarBrick
 Posted: Aug 21, 2014 13:18
 Subject: Re: Store View Tabs Missing [SOLUTION]
 Viewed: 51 times
 Topic: Suggestions
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

StarBrick (7057)

Location:  Netherlands, Gelderland
Member Since Contact Type Status
Oct 18, 2008 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store: StarBrick's BrickShop
Wow, did you post this to the helpdesk too?
 Author: lovaquero View Messages Posted By lovaquero
 Posted: Aug 21, 2014 13:33
 Subject: Re: Store View Tabs Missing [SOLUTION]
 Viewed: 49 times
 Topic: Suggestions
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

lovaquero (2128)

Location:  USA, Indiana
Member Since Contact Type Status
Jan 29, 2009 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store Closed Store: Lo's Parts & Pieces
Yes - that is the first thing I did (the post above is a copy of that email).

And cs_ryan is on it as well

In Suggestions, StarBrick writes:
  Wow, did you post this to the helpdesk too?
 Author: StarBrick View Messages Posted By StarBrick
 Posted: Aug 21, 2014 14:03
 Subject: Re: Store View Tabs Missing [SOLUTION]
 Viewed: 45 times
 Topic: Suggestions
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

StarBrick (7057)

Location:  Netherlands, Gelderland
Member Since Contact Type Status
Oct 18, 2008 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store: StarBrick's BrickShop
Cool,
love the forum, love the members here!
Cheers!
 Author: lovaquero View Messages Posted By lovaquero
 Posted: Aug 21, 2014 15:10
 Subject: Re: Store View Tabs Missing [SOLUTION]
 Viewed: 69 times
 Topic: Suggestions
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

lovaquero (2128)

Location:  USA, Indiana
Member Since Contact Type Status
Jan 29, 2009 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store Closed Store: Lo's Parts & Pieces
I neglected to mention it before, but there IS a user-side workaround (at least
for IE users) to see the store view tabs. This should work until BL dev team
is able to implement a server-side permenant fix.

1 - Right-click on the store title
2 - Continue to right-click while moving your mouse down, as if you are highlighting
text for a copy/paste operation
3 - You will managage to force the hidden-scrollable table to scroll upward,
revealing the store tabs:
 


 Author: par016 View Messages Posted By par016
 Posted: Aug 21, 2014 15:13
 Subject: Re: Store View Tabs Missing [SOLUTION]
 Viewed: 37 times
 Topic: Suggestions
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

par016 (7562)

Location:  USA, New York
Member Since Contact Type Status
Apr 30, 2013 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store: Boston Red Blocks
Good solution, but I think you mean left click.

-Pete

In Suggestions, lovaquero writes:
  I neglected to mention it before, but there IS a user-side workaround (at least
for IE users) to see the store view tabs. This should work until BL dev team
is able to implement a server-side permenant fix.

1 - Right-click on the store title
2 - Continue to right-click while moving your mouse down, as if you are highlighting
text for a copy/paste operation
3 - You will managage to force the hidden-scrollable table to scroll upward,
revealing the store tabs:
 Author: lovaquero View Messages Posted By lovaquero
 Posted: Aug 21, 2014 15:40
 Subject: (Cancelled)
 Viewed: 27 times
 Topic: Suggestions
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

lovaquero (2128)

Location:  USA, Indiana
Member Since Contact Type Status
Jan 29, 2009 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store Closed Store: Lo's Parts & Pieces
(Cancelled)
 Author: lovaquero View Messages Posted By lovaquero
 Posted: Aug 21, 2014 15:42
 Subject: Re: Store View Tabs Missing [SOLUTION]
 Viewed: 26 times
 Topic: Suggestions
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

lovaquero (2128)

Location:  USA, Indiana
Member Since Contact Type Status
Jan 29, 2009 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store Closed Store: Lo's Parts & Pieces
Doh! Right, erm left you are!

I mean, yes - you are correct - I meant 'left-click'

/walks away grumbling about the English language

In Suggestions, par016 writes:
  Good solution, but I think you mean left click.

-Pete
 Author: Andy_Bell View Messages Posted By Andy_Bell
 Posted: Aug 21, 2014 15:25
 Subject: Re: Store View Tabs Missing [SOLUTION]
 Viewed: 30 times
 Topic: Suggestions
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

Andy_Bell (2365)

Location:  USA, Alabama
Member Since Contact Type Status
Jan 19, 2005 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store: Murphy the Brickyard Dog
In Suggestions, lovaquero writes:
  I neglected to mention it before, but there IS a user-side workaround (at least
for IE users) to see the store view tabs. This should work until BL dev team
is able to implement a server-side permenant fix.

1 - Right-click on the store title
2 - Continue to right-click while moving your mouse down, as if you are highlighting
text for a copy/paste operation
3 - You will managage to force the hidden-scrollable table to scroll upward,
revealing the store tabs:


This works fine for me:

ctrl +mouse wheel will zoom in or out
Just 1 zoom step should bring the tabs back into view.
AB

http://www.bricklink.com/message.asp?ID=847620
 Author: lovaquero View Messages Posted By lovaquero
 Posted: Aug 21, 2014 15:45
 Subject: Re: Store View Tabs Missing [SOLUTION]
 Viewed: 32 times
 Topic: Suggestions
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

lovaquero (2128)

Location:  USA, Indiana
Member Since Contact Type Status
Jan 29, 2009 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store Closed Store: Lo's Parts & Pieces
I tried this one with IE8 (win7 Pro, USB basic mouse), but it doesn't seem
to work. And I attempted the full range of zoom 10%-400% in steps and no luck.

What browser/OS are you using Andy?

  
This works fine for me:

ctrl +mouse wheel will zoom in or out
Just 1 zoom step should bring the tabs back into view.
AB

http://www.bricklink.com/message.asp?ID=847620
 Author: Andy_Bell View Messages Posted By Andy_Bell
 Posted: Aug 22, 2014 10:14
 Subject: Re: Store View Tabs Missing [SOLUTION]
 Viewed: 33 times
 Topic: Suggestions
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

Andy_Bell (2365)

Location:  USA, Alabama
Member Since Contact Type Status
Jan 19, 2005 Contact Member Seller
Buying Privileges - OKSelling Privileges - OK
Store: Murphy the Brickyard Dog
In Suggestions, lovaquero writes:
  I tried this one with IE8 (win7 Pro, USB basic mouse), but it doesn't seem
to work. And I attempted the full range of zoom 10%-400% in steps and no luck.

What browser/OS are you using Andy?

  
This works fine for me:

ctrl +mouse wheel will zoom in or out
Just 1 zoom step should bring the tabs back into view.
AB

http://www.bricklink.com/message.asp?ID=847620

I typically use Chrome - it behaves the same as it has for a long time - in Chrome
at 110% the tabs are 50% hidden at 125% completely hidden - 100% show as expected.

In Firefox no matter the zoom level the tabs show correctly. Same for IE

1920x1080 display size

Andy
 




 Author: BLUSER_36530 View Messages Posted By BLUSER_36530
 Posted: Aug 22, 2014 09:52
 Subject: Re: Store View Tabs Missing [SOLUTION]
 Viewed: 54 times
 Topic: Suggestions
Cancel Message
Cancel
Reply to Message
Reply
BrickLink
ID Card

BLUSER_36530 (810)

Location:  USA, Florida
Member Since Contact Type Status
Jul 11, 2004 Contact Member Seller
No Longer RegisteredNo Longer Registered
Store Closed Store: ALL
No Longer Registered
In Suggestions, lovaquero writes:
  I neglected to mention it before, but there IS a user-side workaround (at least
for IE users) to see the store view tabs. This should work until BL dev team
is able to implement a server-side permenant fix.

1 - Right-click on the store title
2 - Continue to right-click while moving your mouse down, as if you are highlighting
text for a copy/paste operation
3 - You will managage to force the hidden-scrollable table to scroll upward,
revealing the store tabs:

That works for me in Chrome/Vista. Thanx!