Forum problem: Oops, I pressed the Change Font Size link

The place to hang out and talk about totally anything general.
GC13
level2
level2
Posts: 211
Joined: Tue Jul 23, 2013 4:06 pm

Forum problem: Oops, I pressed the Change Font Size link

Postby GC13 » Sat Oct 12, 2013 5:15 am

Now it seems I'm stuck choosing between three different font sizes: too big, disgustingly big, and hideously big. Deleting the board cookie doesn't change the font back to where it was, and I can't find a forum option to fix it either.

The funny thing is that as the page loads, the font is at its original size. Then everything finishes loading and the font balloons.

It looks like the fontsizeup function in the Javascript isn't set to ever cycle back to the default font. Can this please be fixed?
User avatar
NeatNit
level5
level5
Posts: 2929
Joined: Mon Jan 28, 2008 2:41 pm
Location: Israel
Contact:

Re: Forum problem: Oops, I pressed the Change Font Size link

Postby NeatNit » Sat Oct 12, 2013 11:35 am

Confirmed. However, deleting cookies (manually, didn't try the link at the bottom) definitely does the trick.
GC13
level2
level2
Posts: 211
Joined: Tue Jul 23, 2013 4:06 pm

Re: Forum problem: Oops, I pressed the Change Font Size link

Postby GC13 » Sat Oct 12, 2013 4:28 pm

Well that was more of a pain than it needed to be. Shows what I get for trusting the board's Delete Cookie link. :)

Thanks for the info.
DHKold
level1
level1
Posts: 60
Joined: Mon Oct 08, 2012 9:29 am

Re: Forum problem: Oops, I pressed the Change Font Size link

Postby DHKold » Wed Oct 16, 2013 1:58 pm

Here is the problem:

Code: Select all

function fontsizeup(event)
{
   // Skip tabs; 9 being the ASCII code for a tab
   if (event && getKeyCode(event) == 9)
   {
      return true;
   }

   var active = getActiveStyleSheet();

   switch (active)
   {
      case 'A--':
         setActiveStyleSheet('A-');
      break;

      case 'A-':
         setActiveStyleSheet('A');
      break;

      case 'A':
         setActiveStyleSheet('A+');
      break;

      case 'A+':
         setActiveStyleSheet('A++');
      break;

      case 'A++':
         setActiveStyleSheet('A');
      break;

      default:
         setActiveStyleSheet('A');
      break;
   }

   return false;
}


Since clicking the "Change font size" only call this function and not the fontsizedown one, once you get to 'A', you only cycle through A -> A+ -> A++ -> A ...
A simple correction is to replace A++ -> A by A++ -> A-- :)
User avatar
NeatNit
level5
level5
Posts: 2929
Joined: Mon Jan 28, 2008 2:41 pm
Location: Israel
Contact:

Re: Forum problem: Oops, I pressed the Change Font Size link

Postby NeatNit » Wed Oct 16, 2013 2:07 pm

But why does it never return to normal size? A is apparently not the default size.
mikewalker11
level0
Posts: 1
Joined: Sun Dec 15, 2013 1:37 pm
Location: Hiding from K-9 units in a cupboard

Re: Forum problem: Oops, I pressed the Change Font Size link

Postby mikewalker11 » Mon Dec 16, 2013 6:18 pm

Because it loops around. you can get from, say, F to A, but not the other way.
User avatar
NeatNit
level5
level5
Posts: 2929
Joined: Mon Jan 28, 2008 2:41 pm
Location: Israel
Contact:

Re: Forum problem: Oops, I pressed the Change Font Size link

Postby NeatNit » Mon Dec 16, 2013 6:36 pm

1. Useless bump. (is this fixed btw?)
2. Ignorant answer.

It loops between A, A+, and A++. There is no F. After clicking the button once it never returns to normal size. Therefore A, A+, and A++ are all bigger than normal size. Therefore normal size is not A. Which is WEIRD!!
User avatar
_alphaBeta_
level4
level4
Posts: 534
Joined: Sun Jul 21, 2013 2:20 pm
Location: NJ, USA

Re: Forum problem: Oops, I pressed the Change Font Size link

Postby _alphaBeta_ » Mon Dec 23, 2013 10:52 pm

You can avoid deleting the cookies by manually changing the style the forum pages are using. Internet Explorer users can go to "View" menu and select "Style." I don't have IE in front of me, but try selecting a different one from the "A" styles. Firefox users can bring up the "Style Editor" portion of the "Web Developer" console and deselect all the "A" styles.

Style "A" is indeed NOT the smallest, so you want to force the browser to use the small default. Unfortunately, the "Change font size" selection in the forum interface never takes you off the "A" train.

Return to “Introversion Lounge”

Who is online

Users browsing this forum: No registered users and 1 guest