Font consistency, message views

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
df0notfound
Latté
Posts: 72
Joined: Tue Dec 20, 2005 7:41 pm

Font consistency, message views

Post by df0notfound »

I'm working on a message view with incomming and outgoing simply set to "clear:left" so in theory they should just stack on top of each other nicely, yet in adium and the template.html I'm testing it in they go off the bottom of the page.
Anyone know why this is?

/\ thats solved

http://forums.cocoaforge.com/viewtopic. ... 2076#62076 < Font issues here
Last edited by df0notfound on Thu May 04, 2006 2:33 pm, edited 2 times in total.
User avatar
Catfish_Man
Cocoaforge Admin
Posts: 1203
Joined: Thu Dec 02, 2004 6:30 am
Location: Portland, Oregon
Contact:

Post by Catfish_Man »

Sounds like something is odd with the scrollToBottom script in Template.html
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

Re: Message View creation, entries off the bottom of the win

Post by zaudragon »

df0notfound wrote:I'm working on a message view with incomming and outgoing simply set to "clear:left" so in theory they should just stack on top of each other nicely, yet in adium and the template.html I'm testing it in they go off the bottom of the page.
Anyone know why this is?
And this happens UNTIL you get a scrollbar right?

My Hazmat and Terminal styles have modified Templates to prevent this from happening; messages on them show up at the top of the window if there is no scrollbar.
Blog | X(tras)
Communists code without classes.
df0notfound
Latté
Posts: 72
Joined: Tue Dec 20, 2005 7:41 pm

Re: Message View creation, entries off the bottom of the win

Post by df0notfound »

zaudragon wrote: And this happens UNTIL you get a scrollbar right?

My Hazmat and Terminal styles have modified Templates to prevent this from happening; messages on them show up at the top of the window if there is no scrollbar.
Yep it does, I hadn't noticed that.
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

Re: Message View creation, entries off the bottom of the win

Post by zaudragon »

df0notfound wrote:
zaudragon wrote: And this happens UNTIL you get a scrollbar right?

My Hazmat and Terminal styles have modified Templates to prevent this from happening; messages on them show up at the top of the window if there is no scrollbar.
Yep it does, I hadn't noticed that.

all of

Code: Select all

function alignChat(shouldScroll)
should be changed to:

Code: Select all

		function alignChat(shouldScroll) {
			var windowHeight = window.innerHeight;
			
			if (windowHeight > 0) {
				var contentElement = document.getElementById('Chat');
				contentElement.style.position = 'static';
			}
			
			if (shouldScroll) scrollToBottom();
		}
Blog | X(tras)
Communists code without classes.
df0notfound
Latté
Posts: 72
Joined: Tue Dec 20, 2005 7:41 pm

Post by df0notfound »

Excellent that works perfectly zaudragon :)

One last problem, the received text is coming in as Arial regular 9pt when everything in the style says it should arrive in Geneva 9pt. And arial looks really messy at that site and destroys my line spacing.
Anyone know how to strictly force it to Geneva?
User display fonts are turned off, I've defined Geneva in my CSS body and even in my incoming and outgoing classes but its still creeping through.
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

Post by zaudragon »

How about in the Messaging preferences? Do you have Geneva set?
Blog | X(tras)
Communists code without classes.
df0notfound
Latté
Posts: 72
Joined: Tue Dec 20, 2005 7:41 pm

Post by df0notfound »

Yep set to geneva 9 in there too
Image
The top is what I get through from things sometimes(the bottom is my text for comparison), in this case the menu in smarterchild as a test, a lot of the other text comes through fine from smarterchild though.
Post Reply