Page 1 of 1
Font consistency, message views
Posted: Mon May 01, 2006 2:52 am
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
Posted: Mon May 01, 2006 3:16 am
by Catfish_Man
Sounds like something is odd with the scrollToBottom script in Template.html
Re: Message View creation, entries off the bottom of the win
Posted: Mon May 01, 2006 4:36 am
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.
Re: Message View creation, entries off the bottom of the win
Posted: Mon May 01, 2006 12:21 pm
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.
Re: Message View creation, entries off the bottom of the win
Posted: Mon May 01, 2006 11:58 pm
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
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();
}
Posted: Tue May 02, 2006 12:38 am
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.
Posted: Tue May 02, 2006 10:08 pm
by zaudragon
How about in the Messaging preferences? Do you have Geneva set?
Posted: Tue May 02, 2006 11:50 pm
by df0notfound
Yep set to geneva 9 in there too

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.